I'm getting the above error for the following code. Can anyone see what it is? Is my date formatting off?

$get_topics_sql = "SELECT topic_id, topic_title, DATE_FORMAT(topic_create_time,  '%b %e %Y at %r') AS fmt_topic_create_time, topic_owner FROM forum_topics ORDER BY topic_create_time DESC";
echo $get_topics_sql;
$get_topics_res = mysql_query($connection, $get_topics_sql) or die(mysql_error($connection));

Thanks!

Recommended Answers

All 2 Replies

reverse $connection and $get_topics_sql in mysql_query

Thank you!

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.