I am attempting using the result of getdate() as a key to a MSSQL database. The MSSQL index is a SQLDATETIME.
I use :-
$StartDate = getdate();
and after connecting and selecting the database
mssql_bind($proc, "@StartDate", $StartDate, SQLDATETIME);
This fails. Is there something I need to do to the variable I get from getdate() before making the MSSQL call?
MSSQL datetime and PHP getdate()
1 reply to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users