fortnox007 Posted January 2, 2011 Share Posted January 2, 2011 its working now right, because i can see it. Link to comment https://forums.phpfreaks.com/topic/223216-game-playing-system/page/2/#findComment-1154010 Share on other sites More sharing options...
davidknag Posted January 2, 2011 Author Share Posted January 2, 2011 its working now right, because i can see it. hitting ctrl+u i get this: <html> <head> <title> - AtomicPool.com</title> Firefox 4.0.8b beta so you're saying it returns the title for you? Link to comment https://forums.phpfreaks.com/topic/223216-game-playing-system/page/2/#findComment-1154011 Share on other sites More sharing options...
fortnox007 Posted January 2, 2011 Share Posted January 2, 2011 weird stuff maybe add the following line: <?php $con = mysqli_connect('localhost', 'webuser', 'davidknag', 'games')or die(mysqli_error($con)); if(isset($_GET['id'])){ $query_var = (int)$_GET['id']; // force it to be an integer $query=" SELECT * FROM games WHERE id = '$query_var'"; $result = mysqli_query($con, $query)or die(mysqli_error($con)); while($row = mysqli_fetch_array($result)) { //this output should be filtered in a real world $string1= '<td><h2 class="blye2"><i>'.$row['title'].'</i></h2><br />'; $string2= 'dd'.$row['swfname'].'<br />'; $string3= 'Description: '.$row['description'].'<br/>'; $string4= 'How To: '.$row['howto'].'</h3>'; $mysupertitle = $row['title'];// <----------------------------------------------I added this line } } ?> and than in between <title></title> place <?php echo $mysupertitle; ?> make sure the first part is in the head or ontop of your page since it read from top to bottom. Link to comment https://forums.phpfreaks.com/topic/223216-game-playing-system/page/2/#findComment-1154013 Share on other sites More sharing options...
davidknag Posted January 2, 2011 Author Share Posted January 2, 2011 weird stuff maybe add the following line: <?php $con = mysqli_connect('localhost', 'webuser', 'davidknag', 'games')or die(mysqli_error($con)); if(isset($_GET['id'])){ $query_var = (int)$_GET['id']; // force it to be an integer $query=" SELECT * FROM games WHERE id = '$query_var'"; $result = mysqli_query($con, $query)or die(mysqli_error($con)); while($row = mysqli_fetch_array($result)) { //this output should be filtered in a real world $string1= '<td><h2 class="blye2"><i>'.$row['title'].'</i></h2><br />'; $string2= 'dd'.$row['swfname'].'<br />'; $string3= 'Description: '.$row['description'].'<br/>'; $string4= 'How To: '.$row['howto'].'</h3>'; $mysupertitle = $row['title'];// <----------------------------------------------I added this line } } ?> and than in between <title></title> place <?php echo $mysupertitle; ?> make sure the first part is in the head or ontop of your page since it read from top to bottom. yep of course thanks man worked like a charm ty for all your help Link to comment https://forums.phpfreaks.com/topic/223216-game-playing-system/page/2/#findComment-1154014 Share on other sites More sharing options...
fortnox007 Posted January 2, 2011 Share Posted January 2, 2011 no problem m8, as long as i an on top of the highscores list hehe : Link to comment https://forums.phpfreaks.com/topic/223216-game-playing-system/page/2/#findComment-1154016 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.