<?PHP $results = mysql_query("SELECT * FROM messages, comments WHERE messages.user_on='$user2' AND comments.msg_id_fk = messages.msg_id ORDER BY messages.msg_id, comments.com_id DESC") or die(mysql_error()); ?>
Barrett1 0 Light Poster
Recommended Answers
Jump to PostDo you get any kind of error? Maybe the condition comments.msg_id_fk = messages.msg_id actually returns one row ... check your data.
another possible problem: are you looping through the records?
All 4 Replies
Reply to this topic Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.