SELECT a.* , b.* , c.* FROM `資料表1` as a JOIN `資料表2` as b ON a.`索引欄位`= b.`索引欄位` JOIN `資料表3` as c ON b.`索引欄位`= c.`索引欄位` WHERE a.欄位='值' AND ….
SELECT a.*, b.* FROM `signups` AS a JOIN `users` as b ON a.`uid` = b.`uid` WHERE a.`action_id` = '{$action_id}'
{if $op=="show_action"} <h2>已報名名單</h2> <table class="table table-hover table-striped"> <thead> <tr class="info"> <th>姓名</th> <th>Email</th> </tr> </thead> <tbody> {foreach $signups as $signup} <tr> <td>{$signup.name}</td> <td>{$signup.email}</td> </tr> {/foreach} </tbody> </table> {/if}