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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
greenbman Posted February 18, 2013 Author Share Posted February 18, 2013 Thank you works perfectly! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.