|
Posted by shorty on 08/22/05 16:40
Got it working and thanks to all.
Nothing to do with priviliges or any Mysql problems.
The code now reads
$ip = $_SERVER['REMOTE_ADDR'];
$file = $_SERVER['PHP_SELF'];
$query = mysql_db_query($dbname, "INSERT INTO useronline
VALUES('$timestamp','$ip','$file')") or die("<b>MySQL Error:</b>
".mysql_error());
For some reason, be it the way i write it, the code will not run if
$_SERVER['REMOTE_ADDR'] or $_SERVER['PHP_SELF'] is entered directly
into the insert command.
Once again thanks.
Navigation:
[Reply to this message]
|