<html lang="en">
<head>
<meta charset="utf-8">
<title>Date Picker</title>
<link href="jquery-ui-1.8.24.custom/css/start/jquery-ui-1.8.24.custom.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="jquery-ui-1.8.24.custom/js/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="jquery-ui-1.8.24.custom/js/jquery-ui-1.8.24.custom.min.js"></script>
<script type="text/javascript">
$("document").ready(function(){
$("#datepickerID").datepicker({
changeYear: true
})
dateFormat:"%Y-%m-%d"
});
</script>
</head>
<body>
<form method="post" action="datePicker.php">
<label>
<input type="text" name="datepickerID" id="datepickerID" value="<?php echo $datepickerID; ?>"><img src="../images/calendar-icon-vector-801455.jpg" width="21" height="21">
</label><br/><br/>
<input type="submit" name="Submit"/>
</form>
<?php
include('connect_to_db.php');
if($_SERVER['REQUEST_METHOD'] == 'POST')
{
// get form data, making sure it is valid
$datepickerID = mysql_real_escape_string($_POST['datepickerID']);
}
if ($datepickerID == '')
{
mysql_query("INSERT date SET date_acquired='$date_acquired'")
or die(mysql_error()); }
?>
</body>
</html>
am having problems inserting the datepicker in database....am a beginner in php you see....i need your help please...T_T