ohdang888 Posted December 31, 2007 Share Posted December 31, 2007 ok. so i want this to be in file called "game.php"... and when a game is displayed it would be "game.php?title=GAMETITLE" (of course, the GAMETITLE would be the name of the game) so would it atuomatically know to use that info from the same row as "gametitle" is located in?? <?php mysql_connect("localhost", "----", "-------") or die(mysql_error()); mysql_select_db("games") or die(mysql_error()); $result = mysql_query("SELECT title FROM game ") or die(mysql_error()); echo $result; ?> Quote Link to comment https://forums.phpfreaks.com/topic/83792-solved-question-about-mysql/ Share on other sites More sharing options...
revraz Posted December 31, 2007 Share Posted December 31, 2007 If you use $_GET sure. Quote Link to comment https://forums.phpfreaks.com/topic/83792-solved-question-about-mysql/#findComment-426336 Share on other sites More sharing options...
forumnz Posted December 31, 2007 Share Posted December 31, 2007 Assuming the question is "how do i get the right game" - or something - check below. Have this above the connect: $game = @$_GET['title'] ; And this in the SELECT: ("SELECT title FROM game WHERE game='$game'") Please correct if im wrong. Sam. Quote Link to comment https://forums.phpfreaks.com/topic/83792-solved-question-about-mysql/#findComment-426337 Share on other sites More sharing options...
ohdang888 Posted December 31, 2007 Author Share Posted December 31, 2007 thanks! Quote Link to comment https://forums.phpfreaks.com/topic/83792-solved-question-about-mysql/#findComment-426338 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.