|
You have the search functions already in place I assume.. at the end of that call another function to insert it into the searchstring table..
function addlastsearch($q) {
$q=trim(addslashes($q));
$sql="INSERT INTO searchstring (id, string) VALUES ('', '$q');
$result=mysql_query($sql) or DIE("Could not insert");
}
Something like that anyway.
|