1
確定這裏是我的PHP和MySQL代碼:PHP和MYSQ幫助
它是大膽的我想從在線表格的UID,如果它在那裏
其中online.uid =「」我需要這樣把它放在那裏。
$sql = ("select accounts.id,
accounts.tgid,
accounts.lastactivity,
cometchat_status.message,
cometchat_status.status,
**online.uid**
from friends_list join accounts
on friends_list.fid = accounts.id
left join cometchat_status
on accounts.id = cometchat_status.userid
where friends_list.status = '1'
and **online.uid = ''**
and friends_list.uid = '".mysql_real_escape_string($userid)."'
order by tgid asc");
你沒有在任何地方引用在線表格。 – 2009-06-19 15:14:04
但問題是什麼?我不明白。 – Timotei 2009-06-19 15:14:30