Jump to content

[SOLVED] why isn't picture wokring?


ohdang888

Recommended Posts

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>

Link to comment
https://forums.phpfreaks.com/topic/85858-solved-why-isnt-picture-wokring/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.