PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hi,
i m looking for a good algoretem or Tutorial to make a history script, i tryed to make it in few ways but its too complicated
let me explain more about it
i want a script for my site so registered users can see what last 10 pages they viewed and save them in a database
and it will be based on (first in first out) if anyone can help me with good way or got any good Tutorial thanks
mysql_query("INSERT INTO `pageviews` (`user`,`page`) VALUES ('$user', '".basename($_SERVER['PHP_SELF'])."')") or die(mysql_error());
you will save all the pages that this user have viewed and it will just save useless data in the database that i dont use it
i wanted to have script to save just the latest 10 pages and delete the older ones thats why i mentioned the (first in first out method)