What do u mean with INSERT INTO some_table (field1) ?
//get the correct format
$new_date = date('Y-m-d',strtotime($_POST['date']));
//then you can insert that date
$insert = 'INSERT INTO some_table (field1) VALUES("'.mysql_real_escape_string($new_date).'")';
Can you give explain what i have to type in the "some_table(field) ?
Where does the date come from ($_POST['date'] ?
$new_date = date('Y-m-d',strtotime($_POST['date']));
im using the jquery UI datepicker to submit a date to my database but i keep storing 0000-00-00 instead of the date
how do I make the date show up in the database?
can someone help me?
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.