From: Scott P. <wht...@us...> - 2007-10-01 03:34:58
|
Update of /cvsroot/helpmeict/Helpdesk/system In directory sc8-pr-cvs17:/tmp/cvs-serv13612/system Modified Files: logs.php Log Message: Fix MySQL script missing auto_increments Index: logs.php =================================================================== RCS file: /cvsroot/helpmeict/Helpdesk/system/logs.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** logs.php 7 Feb 2007 01:20:17 -0000 1.4 --- logs.php 1 Oct 2007 03:34:51 -0000 1.5 *************** *** 42,46 **** // Pervent problems with apostrophes/quotes in the log entry $log = addslashes($log); ! db_send("INSERT INTO tbl_Logs (userid,domain,timestamp,code,log) VALUES ($id,$domain," . time() . ",'$code','$log');"); } --- 42,47 ---- // Pervent problems with apostrophes/quotes in the log entry $log = addslashes($log); ! $nextid = db_next_id('tbl_Logs_id'); ! db_send("INSERT INTO tbl_Logs (id,userid,domain,timestamp,code,log) VALUES ('$nextid','$id','$domain','" . time() . "','$code','$log');"); } |