Jump to content

[SOLVED] Newbie question - WHERE statements


ShootingBlanks

Recommended Posts

Hello.  I have two fields that users can enter dates into, and then I want to pull records that fall only between those two dates (based on the "due_date" column in my table).  I have the fields properly formatted for SQL date format, but is this code for the "WHERE" part of my SQL expression valid? (and if not, what should it be):

 

"WHERE projects.due_date > '".$_GET['date1']."' AND projects.due_date <= '"..$_GET['date2']."'"

 

Thanks!...

 

 

Link to comment
https://forums.phpfreaks.com/topic/77631-solved-newbie-question-where-statements/
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.