Prismatic Posted March 25, 2006 Share Posted March 25, 2006 On my forums i'm developing I have an Active Topic page. This page is supposed to list only the topics posted in within the last 30 minutes.The query is as follows:[code]SELECT * FROM topics WHERE DATE_SUB(NOW(),INTERVAL '30:00' MINUTE_SECOND) >= time ORDER BY time DESC[/code]Now, the "time" column is just a dump of time(); when the topic was posted. Im not sure but I think because the SQL is using now() and not time() it is failing (Failing as in outputting a bunch of topics that have not really been posted on within the last 30 minutes)Any ideas?EDIT - Figured it out, consider topic [b]*SOLVED*[/b] Link to comment https://forums.phpfreaks.com/topic/5758-solved-sql-issue-query-not-working/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.