fortnox007 Posted January 2, 2011 Share Posted January 2, 2011 its working now right, because i can see it. Quote Link to comment 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? Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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 : Quote Link to comment 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.