brown2005 Posted September 20, 2007 Share Posted September 20, 2007 i have two fields start end what i want to do is from todays date select from start - end Quote Link to comment Share on other sites More sharing options...
Jessica Posted September 20, 2007 Share Posted September 20, 2007 Way too vague. Do you want a dropdown with all of those options? What do you mean select? Are you talking about a database? we're not mindreaders, cmon. Quote Link to comment Share on other sites More sharing options...
brown2005 Posted September 20, 2007 Author Share Posted September 20, 2007 in the sql i want to say date is between start and end like that Quote Link to comment Share on other sites More sharing options...
Jessica Posted September 20, 2007 Share Posted September 20, 2007 What field type are they? int, date, datetime? Quote Link to comment Share on other sites More sharing options...
brown2005 Posted September 20, 2007 Author Share Posted September 20, 2007 date mate... Quote Link to comment Share on other sites More sharing options...
Jessica Posted September 20, 2007 Share Posted September 20, 2007 $sql = "SELECT * FROM table WHERE date > $start && date < $end" 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.