Roadmap:
1. have an input box for the search term
2. have 2 radio buttons, one for location, the other for name
3. Receiving script checks what to search
<?php
$k = $_POST['keywords']; //textbox name
$q = mysql_query("SELECT gid, title FROM search WHERE keywords LIKE '%$k%'") or die(mysql_error());
while(list($gid,$t) = mysql_fetch_row($q)){
echo "<a href=game.php?gid=$gid>$t</a>"."<br>";
}
?>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.