Jump to content
php.lv forumi

Ka var izvilkt drauga draugus !


suport

Recommended Posts

where my_id=$mans_id

my_id padod konkretā lietotāja id, kuram vēlies redzēt draugus.

 

lietotaja id iespejams var dabut šādi:

// atverot drauga profilu dabun vina lietotajvardu no GET
$username=$_GET['view_user'];
//pec lietotajvarda dabun drauga ID
$user_q = mysql_query("SELECT * FROM lietotaji WHERE username='".$username."'");
$user = mysql_fetch_array($user_q);
///pec tam jau parastajam atlases kverijam sava ID vieta idod drauga ID 
$result = mysql_query("SELECT * FROM friends where my_id=$user[user_id] LIMIT $till, $maximum");
//talak viss ka parasti

Edited by Blitz
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...