Sure Hephaistos:
I generally only post the part of the script causing the error. But, since the script is short I'll post it. Here it is:
<?php
$hostname = "hostname";
$username = "username";
$password = "yougotit";
$dbName = "this is it";
mysql_connect($hostname,$username,$password);
//$AWPassword = $HTTP_GET_VARS["Password"];
$AWPassword = "802907a44d"
$SQL2Statement = mysql_query("UPDATE Validation SET StartDateTime = Now() Where Password = '$AWPassword'") or die('Error: Unable to execute insertion query.');
mysql_close;
?>
As you can see I am just assigning the $AWPassword ="802907a44d" to see if it works. I have a multimedia
program that captures the password and then post it
to my php file [Http_Get_Vars ]. Again, the problem is post error on line 20:
StartDateTime = Now() Where Password = '$AWPassword'") or die('Error: Unable to execute insertion query.');
The error has something to with the format of the Now() function and the Where clause of the Update statement.
Here's the schema of the database:
Validation_ID int(11)
ItemNo int (10) 0
Email varchar(55)
Password
AllottedTime 0.00
AccumulatedTime 0.00
EnrolledDate 0000-00-00
StartDateTime 0000-00-00 00:00:00