Jump to content

help with a simple query...so confused


dadamssg

Recommended Posts

i have events stored in my db with start and end dates...im trying to pull up all events that haven't ended

so heres my query

 

SELECT * FROM `test` WHERE DATE(end) > NOW()

 

'end' is a datetime field

 

the above will not pull up this event however with these datetime

start                         end

2009-05-26 01:10:00  2009-05-26 18:20:00

 

what in the world?

Link to comment
https://forums.phpfreaks.com/topic/159665-help-with-a-simple-queryso-confused/
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.