Thanks:)
I will try it out later...
Printable View
Thanks:)
I will try it out later...
Well it kinda works, links ok and everything, but doesn't display the content. My code looks like:
Haven't really got a clue whats wrong, any help please?PHP Code:
$var_array = explode("/",$REQUEST_URI);
$var = $var_array[1];
//query
$result = mysql_query("SELECT * FROM games WHERE Name='$var'", $connect);
//echo title and game
$row = mysql_fetch_assoc($result);
//title
echo ("<head><title>");
echo "Games2Go.co.uk - ";
echo $row['Name'];
echo ("</title></head>");
echo $row['Name'];
echo ("<br><br>");
echo $row['Code'];
Thanks a lot,
Mike
try echoing out $var to make sure you have the correct variable.
I had the wrong variable. It was set as '$var = $var_array[1]; ' when it should have been '$var = $var_array[2]; '
Anyhow thanks for all your help:)