Hello all,
I'm trying to store the date in an sql table, but I want it formatted as such:
Month day, year October 10, 2010 But whenever I do the sql call, the 2010 gets lost. How can I fix this?
$eventdate = "October 10, 2010";
$sql = "INSERT INTO `tims`.`blog` ( `title`, `date`, `post`, `author`, `approved`) \n"
. "VALUES (
'" . mysql_real_escape_string($_REQUEST['title']) . "',
'" . mysql_real_escape_string(addslashes($eventDate)) . "',
'" . mysql_real_escape_string($_REQUEST['TextArea1']) . "',
'" . mysql_real_escape_string($_REQUEST['author']) . "', 'False')\n";
//echo $sql;
$qry = mysql_query($sql) or die(mysql_error());