Jump to content

[SOLVED] Select Statement help


lmhart

Recommended Posts

I need assistance to get this to work correctly.

 

I can not figure out how to put quotes around something in my select statement

 

This works from phpMyAdmin

select * from orders where date="11-06-09"

 

but my statement on my page does not work cause I can not figure out how to get the ""in the statement. I vefired by echoing $today was giving the correct var.

 

$result = mysql_query("SELECT * FROM orders where date = ".$today." ");

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/180570-solved-select-statement-help/
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.