Hi all,
I am still having problems with this code. The first post is now very old, I have been off ill for sometime.
I have the following, I want to display to days date on my form and then store that date in my mySQL table.
$now - time();
$insertSQL = sprintf("INSERT INTO ley_book (id, name, `date`, comment, email) VALUES (%s, %s, %s, %s, %s)",
GetSQLValueString($_POST['id'], "int"),
GetSQLValueString($_POST['name'], "text"),
GetSQLValueString($_POST['$now'], "date"),
GetSQLValueString($_POST['comment'], "text"),
GetSQLValueString($_POST['email'], "text"));
In my form I have
echo date("F j, Y", $now);
This displays the correct date on the form, but when submitted to the database the feild content is blank. Can anyone advise please.