Jump to content

SELECT WHERE DATE(`timestamp`) LIKE $sterm problems


JChilds

Recommended Posts

mysql_query('SELECT * FROM `tendered` WHERE DATE(`timestamp`) LIKE $sterm') or die(mysql_error());

Where $sterm = 2010-08-28

and `timestamp` are in format 2010-07-26 17:30:29

 

I get error "Unknown column '$sterm' in 'where clause'"

 

I have no idea what could be wrong

 

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.