Hi ,
i am using mssql. I had a field with datatype datetime.
My php coding:
$requested=date("d/m/y : H:i:s", time());
i am using this query
insert into tbl values('$requested')
while inserting into my mssql table, i am facing the following error
Warning: mssql_query() [function.mssql-query]: message: Syntax error converting datetime from character string. (severity 16) in C:\xampp\htdocs\form.php on line 176
Warning: mssql_query() [function.mssql-query]: Query failed in C:\xampp\htdocs\form.php on line 176
unable to insert into log table
please help me out. thanks