function AfterEdit()
{
//** Insert a record into another table ****
global $conn;
$IP = $_SERVER["REMOTE_ADDR"];
$User = @$_SESSION["UserID"];
$AccessType = "Login";
$strSQLInsert = "insert into audit (IP,User,DateTime) values ('$IP','$User',NOW())";
db_exec($strSQLInsert,$conn);
}
$AccessType = "Login";
$AccessType = "Some_thing";
$AccessType = "Some thing";
I can only get Login to be written to the table.
What is the correct syntax?
Cheers Chris