Saturday, 17 August 2013

PHP/MySQL Multiselect from tables

PHP/MySQL Multiselect from tables

please for some help I want this code show result only friends of $user_id
but I want to show results from friends and $user_id
SELECT * FROM activity,friends WHERE friends.user_id='$user_id' and
activity.activity_user=friends.fr_id ORDER BY activity.id DESC LIMIT 10

No comments:

Post a Comment