I am just starting to learn PHP 5 but unfortunately my ISP provider uses PHP 4 and although i've done my best to substitute PHP5 code with PHP4 i'm still getting some errors.
The latest is a 'Can't execute insert query' error returned by the query. All of the code preceeding this is working okay, including connecting to the server.
Any help would be so much appreciated. MisseyB
$_SESSION['auth']="yes";
$logname=$_POST['fusername'];
$_SESSION['logname'] = $logname;
$today = date("Y-m-d h:i:s");
$sql = "INSERT INTO login (loginname,logintime)
VALUES ('$logname','$today')";
$result = mysql_query($sql)
or die("Can't execute insert query.");