ok I've got the php code of
<?php
$orderNo = $_POST['orderNo'];
$date =$_POST['date'];
$con = mysqli_connect("localhost", "user", "password", "Orders");
mysqli_query($con, "UPDATE Orders112014 SET DispatchDate=$date WHERE OrderNo=$orderNo;") or die("failed" . myql_errno());
$data = "Date Added";
echo $data;
?>
The problem is when I input a number into the date variable in the html, the code works and DispatchDate column is updated. If I use a string like Febuary instead the php wont update the database. I really can't explain it at all. I've checked to make sure the databases are utf8 encoded and all should be fine. Apart from that I don't know what else to do.
Any help would be appreciated.