jwk811 Posted May 23, 2010 Share Posted May 23, 2010 why isnt this working? $sql = "SELECT tbl_comments.comment AS comment_text FROM tbl_comments, photo_posts WHERE tbl_comments.post_id = photo_posts.post_id AND photo_posts.user_id = '$member_user_id'"; i want to get the comments someone has on all their photos to show in a list. how can i do this? Link to comment https://forums.phpfreaks.com/topic/202686-table-joins/ Share on other sites More sharing options...
Mchl Posted May 24, 2010 Share Posted May 24, 2010 Looks fine at first sight. Do you get any errors when you try to run it? Link to comment https://forums.phpfreaks.com/topic/202686-table-joins/#findComment-1062469 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.