in reply to Re: question for SQL date with win32:odbc
in thread question for SQL date with win32:odbc

I am not familiar with MS SQL, but aren't strings supposed to be in single quotes? Check the first parameter after DateAdd(.

$sql = "select Date_time from Main where Date_Time >= DateAdd('h', -2, + '01/05/2008 05:35:00') ";

Just a guess. P(roba|ossi)bly wrong.

--MidLifeXis