Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select date problem... 1

Status
Not open for further replies.

Elliott3

Programmer
Joined
Sep 5, 2002
Messages
347
Location
CA
What i want to do is get the records that are greater than or equal to a certain date:
$strSQL = "select * from mytable where date >=" . $date;

I think that the above is just comparing the string $date to the date. The database is mySQL. Can someone let me in on the big secret? lol

CES
 
thanks sleipnir214...it was the signle quotes

CES
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top