yeahz Posted January 23, 2010 Report Share Posted January 23, 2010 (edited) Šoreiz lai runā bilde. Kods: $all_id = mysql_query("SELECT id FROM friends WHERE for_who=$user[id]"); $array = array(); $q = "WHERE userid=" . implode(' AND userid=', $array); Edited January 23, 2010 by yeahz Quote Link to comment Share on other sites More sharing options...
KillerBean Posted January 23, 2010 Report Share Posted January 23, 2010 domā kaut ko tādu: $query = "..."; $result = mysql_query($query); $dati = array(); while ($row = mysql_fetch_assoc($result)) { $dati[] = $row['id']; }; Quote Link to comment Share on other sites More sharing options...
yeahz Posted January 23, 2010 Author Report Share Posted January 23, 2010 paldies, izdevās. Quote Link to comment Share on other sites More sharing options...
Grey_Wolf Posted January 23, 2010 Report Share Posted January 23, 2010 yeahz --> prieks draugiem ;) nesmuks ID id labak turet ka INT ( BIGINT ;) ) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.