Tamam burada benim php ve mysql kodu:
o cesur nerede ben orada çevrimiçi tablo ve eğer uid istedi
burada online.uid ='' ben bu yüzden orada uid koymak gerekli.
$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");