I've got a group of 100 static IP that connects to 100 PC. At logon and at logout, I execute a script using the 'wget' command to post the values into a php:
http://site.com/userlog.php?username=johndoe&station=101&status=1
how can I define those values so the php knows to grab the username, ip, status?
1-
$username= the value in the url
$status= the value in the url
$station=the value in the url
mysql_connect($host, $db_user, $db_pass);
$insert = mysql_db_query("$db_name", "INSERT INTO useronline VALUES
('$username','$REMOTE_ADDR','$status','$station')");
2-sometimes, the current cgi that I am using fails and inserts different values for the same IP., resulting in me displaying the same PC being used by 2 people at the same time, or in the case that the log out not registered, it displays the same person at 2 or 3 PC.
How can I make the IP unique (or station)? and the username unique?
thanks.