Posted by cosmoKen on 01/19/06 18:56
Sorry, but if the form send by POST :
year = 2005
month = 05
day = 12
and the script is :
$birthdate = $_POST['year']."-".$_POST['month']."-".$_POST['day'];
$add = "insert into personal (birthday_field) values ('$birthdate')";
mysql_query($add);
It should work
if it does not, try just after your insert :
echo mysql_error();
[Back to original message]
|