justAnoob Posted April 1, 2009 Share Posted April 1, 2009 A little red x appears in the where the picture should be. What's wrong? <?php mysql_connect("xxxxxxxxx","xxxxxxxxx","xxxxxxxxx"); mysql_select_db("xxxxxxxx"); $result = mysql_query("SELECT imgpath, student, description, in_return FROM xxxxxx"); while($x=mysql_fetch_array($result)) { $imgpath=$x["imgpath"]; $item_name=$x["student"]; $description=$x["description"]; $in_return=$x["in_return"]; echo "<img src='userimages/computers/'><br>"; echo " Trade Item: $item_name<br>"; echo "Description: $description<br>"; echo " Seeking: $in_return"; } ?> Quote Link to comment Share on other sites More sharing options...
Mchl Posted April 1, 2009 Share Posted April 1, 2009 There's no picture at indicated location. Check if you have correct paths (hint: you don't use the path from database at all) 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.