pagename; } else { return 0; } } // setup for full-text search function InitFullSearch($dbi, $search) { $search = addslashes($search); $res = mysql_query("select * from $dbi[table] where content like '%$search%'", $dbi["dbc"]); return $res; } // iterating through database function FullSearchNextMatch($dbi, $res) { if($hash = mysql_fetch_array($res)) { return MakePageHash($hash); } else { return 0; } } ?>