kDDL Recent Searches Re-created, most likely the same or similar code as before.. .. but i lost the original :P ---------------------------------------------------------------------------- In search.php AND/OR index.php (if you use search.php, do both, if you don't or it doesn't exist, only do index.php): ---------------------------- FIND NEAR THE VERY TOP: ?> ---------------------------- ---------------------------- Now heres a choice, in your SQL "recents" table, do you have a column named "searches"? ---------------------------- ---------------------------- NO: ADD ABOVE THE ?>: if($q != "") { mysql_query("INSERT INTO recents (query) VALUES ('".addslashes($q)."')"); } ---------------------------- ---------------------------- YES: ADD ABOVE THE ?>: if($q != "") { if(!@mysql_num_rows(mysql_query("SELECT id FROM recents WHERE query = '".addslashes($q)."'"))) { mysql_query("INSERT INTO recents (query) VALUES ('".addslashes($q)."'"); } else { mysql_query("UPDATE recents SET searches = searches+1 WHERE query = '".addslashes($q)."'"); } } ---------------------------- ---------------------------- WHEN YOU WANT TO DISPLAY RECENTS, ADD THE FOLLOWING CODE (to any file): "),"-",$jmz[query]); echo ''.$jmz_clean.', '; } ?> ---------------------------- Now if you don't have a table for recents or you are having problems, read below: The basic structure of the recents table this code is made for is shown below: NAME | TYPE | LENGTH | EXTRA? id | INT | 3 | auto_increment, primary key query | VARCHAR | 100 | index searches* | INT | 3 | none * = optional field