ohdang888 Posted January 13, 2008 Share Posted January 13, 2008 the code is working. Its not creating any errors or anything. how i want it is this.... Game Picture(in the form of a link) Link Type but its not calling the picture. And theres no blank IMG(the box with the little red cross) thing there when there is no picture present. whats wrong with it? <table> <?php $new_games = mysql_query("SELECT link, game_picture_url, type, title, date_added FROM game ORDER BY date_added LIMIT 10") or die(mysql_error()); $x = 0; echo '<tr>'; while($row2 = mysql_fetch_assoc($new_games)){ if ($x % 5 == 0) { echo '</tr><tr>'; } $x++; echo '<td>'; echo'<center>'; echo '<font size=3>'; echo '<a href="game.php?title='; echo $row2['title'].'>'; echo '<img src="gamepic/'; echo $row2['game_picture_url']; echo '" height="120" width="120">'.'<br>'.'</a>'; echo $row2['link'].'<br>'; echo '<font size=2>'; echo '('; echo $row2['type']; echo ')'; echo '</td>'; } ?> </tr> </table> Quote Link to comment https://forums.phpfreaks.com/topic/85858-solved-why-isnt-picture-wokring/ Share on other sites More sharing options...
revraz Posted January 13, 2008 Share Posted January 13, 2008 View the Source while the page is displayed and see what is actually being pushed out to the browser. Quote Link to comment https://forums.phpfreaks.com/topic/85858-solved-why-isnt-picture-wokring/#findComment-438251 Share on other sites More sharing options...
ohdang888 Posted January 13, 2008 Author Share Posted January 13, 2008 "view the source" what does that mean and how do i do that? Quote Link to comment https://forums.phpfreaks.com/topic/85858-solved-why-isnt-picture-wokring/#findComment-438255 Share on other sites More sharing options...
revraz Posted January 13, 2008 Share Posted January 13, 2008 On your Browser, while the page is displayed, click VIEW then SOURCE Quote Link to comment https://forums.phpfreaks.com/topic/85858-solved-why-isnt-picture-wokring/#findComment-438256 Share on other sites More sharing options...
papaface Posted January 13, 2008 Share Posted January 13, 2008 @OP - Echos on separate lines will actually print to the source in separate lines. Put your echo in one line. Quote Link to comment https://forums.phpfreaks.com/topic/85858-solved-why-isnt-picture-wokring/#findComment-438261 Share on other sites More sharing options...
ohdang888 Posted January 13, 2008 Author Share Posted January 13, 2008 whoaaaa. i never knew that... i solved it now. viewing the scource helps a lot... THANKS! Quote Link to comment https://forums.phpfreaks.com/topic/85858-solved-why-isnt-picture-wokring/#findComment-438269 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.