Originally posted by Erestar
I'd just add a meniumint field to the database called TimeVisited, and then when you log the IP address, call time() in PHP for the TimeVisited field.
To get it out, just do a select and order by TimeVisited in decending order, take the first row from the result set that matches the IP addres, and compare that value with the current time.
Erestar
PS. Sorry, on my way out... This was kinda rushed 😉
Okay everyone :-)
I'll make all this and insert it as a include file!
1/ I'll run a few lines getting all info like the page the user was on, what OS they are using and what page they came from.... then i'll get the IP.
2/ Run a query from the datebase and match the IP, if I get a match then check the time, if there is a a IP within 5 minutes then exit the code.
3/ If not then carry on and insert all the info i go into my database..
Right this is where i might need help, how do i do step 2?? what what is a example of this code.... i have no idea