Ok, so to list all the links on a page you'd have something like...?
Code:
$result = mysql_query("SELECT * FROM games");
for ($x=0; $x < mysql_num_rows($result); $x++) {
$row = mysql_fetch_assoc($result);
echo ("<a href='http://www.example.com/game/");
echo $row['Name'];
echo ("'>")
}
And to have the game on the next page have something like this, and the echo statements?
Code:
$var_array = explode("/",$REQUEST_URI);
$var = $var_array[1];
$result = mysql_query("SELECT * FROM games WHERE Name='$var";
Also what is $REQUEST_URI please?
Thanks a lot for all your help,
Mike
Bookmarks