Jump to content

what's wrong with querry statement?


kindtiger

Recommended Posts

$sql = "SELCET MAX( messages.date ) AS maxdate, topics.id AS topicid, topics.*, users.* FROM messages, topics, users WHERE messages.topic_id = topics.id AND topics.user_id = users.id AND topics.forum_id = 1 GROUP BY messages.topic_id ORDER BY maxdate DESC;";

 

$result = mysql_query($sql);

 

but the $result is FALSE

 

what's wrong with the select statement?

 

Thank you in advance!

 

 

Link to comment
https://forums.phpfreaks.com/topic/206346-whats-wrong-with-querry-statement/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.