[solved] SQL / ADODB lite Help for Dummies (Dummy actually!)
Posted: Tue May 01, 2012 9:08 pm
When I put a '<' less than operator in my where clause it gets converted to a '<' before the query is executed.
The debug output shows:
I'm sure there is a nice easy way to solve this I just can't find it.
Thanks. Chris.
Code: Select all
$sql = "SELECT p.id FROM cms_module_products AS p WHERE p.weight<'100'";
$res = $db->GetCol($sql);
The debug output shows:
Code: Select all
SELECT p.id FROM cms_module_products AS p WHERE p.weight<'100'
Thanks. Chris.