<?php $date = date('Y-m-d H:i:s'); $sql = mysql_query("INSERT INTO reservation (date_reserved) VALUES('$date'") or die (mysql_error()); ?>
and it returns an error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2
/> Please anyone can help me..
This post has been edited by Dormilich: 03 April 2013 - 04:10 AM
Reason for edit:: please use [code] [/code] tags when posting code