gspabla
04-17-2009, 05:02 PM
Please have a look to the attachment to see what im trying to do.
Database field= "Age"
i want that if a user choose date of birth or if he writes his age in text box, the data goes to the fieldname 'Age ' only
how do i do this?
$insert = mysql_query("insert into register (Name,Gender,DOB,Age,TOB,POB) values ('".$_SESSION['Name']."', '".$_SESSION['Gender']."', '".$_SESSION['DateofBirth']."', '".$_SESSION['Age']."', '".$_SESSION['Timeofbirth']."', '".$_SESSION['Placeofbirth']."')
or die("Could not insert data because ".mysql_error());
im a newbie to php/mysql
please help!
Database field= "Age"
i want that if a user choose date of birth or if he writes his age in text box, the data goes to the fieldname 'Age ' only
how do i do this?
$insert = mysql_query("insert into register (Name,Gender,DOB,Age,TOB,POB) values ('".$_SESSION['Name']."', '".$_SESSION['Gender']."', '".$_SESSION['DateofBirth']."', '".$_SESSION['Age']."', '".$_SESSION['Timeofbirth']."', '".$_SESSION['Placeofbirth']."')
or die("Could not insert data because ".mysql_error());
im a newbie to php/mysql
please help!