Jump to content
php.lv forumi

COUNT online friends


sandis_m

Recommended Posts

mysql_query("SELECT name, lastname, birthdate, uid, upicture FROM all_users JOIN all_friends ON all_users.uid = all_friends.friendid WHERE myid='$myid' AND online='1');

Šitais man izvada visus online draugus bet kā lai viņus saskaita?

Esmu izmēģinājies visādi, bet uzrāda ka kautkas nav kārtībā iekš SQL syntax

 

mysql_query("SELECT name, lastname, birthdate, uid, upicture [b]AS skaits[/b] FROM all_users JOIN all_friends ON all_users.uid = all_friends.friendid WHERE myid='$myid' AND online='1');

?

 

vnk taads besis jau čakareeties

 

Vismaz iedodiet lūdzu adresi, kur viss aprakstīts kā pareizi jāveido ...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...