greenbman Posted February 18, 2013 Share Posted February 18, 2013 Ok so I was needing to know if I can do this: SELECT * FROM `accounts` ORDER BY `ctime` WHERE `ctime` >='$time' ASC can I do a WHERE `ctime` >= '$time' ? And how do it? Because when I run this nothing happens. Thanks, greenbman Link to comment https://forums.phpfreaks.com/topic/274647-logical-operation-in-where-clause/ Share on other sites More sharing options...
Barand Posted February 18, 2013 Share Posted February 18, 2013 Check out the syntax of SELECT statements and look at the order of the various clauses. In this case SELECT * FROM `accounts` WHERE `ctime` >='$time' ORDER BY `ctime` ASC Link to comment https://forums.phpfreaks.com/topic/274647-logical-operation-in-where-clause/#findComment-1413206 Share on other sites More sharing options...
greenbman Posted February 18, 2013 Author Share Posted February 18, 2013 Thank you works perfectly! Link to comment https://forums.phpfreaks.com/topic/274647-logical-operation-in-where-clause/#findComment-1413209 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.