Hi, I'm using php 5.2.3 with mysql server 5.1 as backend.
I have a program in which a person enters or chooses two dates from two datetime pickers and other info, I'm not sure if the problem is in the Datatype for the datetime picker declared in the table editor why none of the fields save in the database. I entered the datatype as DATE. and my datetime pickers code look like this:
Any help will be greatly appreciated...t hanks mites
I have a program in which a person enters or chooses two dates from two datetime pickers and other info, I'm not sure if the problem is in the Datatype for the datetime picker declared in the table editor why none of the fields save in the database. I entered the datatype as DATE. and my datetime pickers code look like this:
Code:
<script language="javascript" type="text/javascript" src="datetimepicker.js">
//Date Time Picker script- by TengYong Ng of http://www.rainforestnet.com
//Script featured on JavaScript Kit (http://www.javascriptkit.com)
//For this script, visit http://www.javascriptkit.com
</script>
//DATES-called from scripts
//Function CreateInputField($field_title,$input_type,$input_name,$input_value,$input_size,$td_width)
$f1->createInputField("<b>$lang->reservDate:</b>",'text','reserv_date',"$redate_value",'40','150');
$f1->createInputField("<b>$lang->departDate:</b>",'text','reserv_date2',"$redate2_value",'40','150');
echo "Select Arrival Date: <a href=\"javascript:NewCal('reserv_date','ddmmyyyy')\"><img src=\"../images/cal.gif\" width=\"16\" height=\"16\" border=\"0\" alt=\"Pick a date\"></a> ";
echo " Select Departure Date: <a href=\"javascript:NewCal('reserv_date2','ddmmyyyy')\"><img src=\"../images/cal.gif\" width=\"16\" height=\"16\" border=\"0\" alt=\"Pick a date\"></a>";
Comment