Jump to content

Images Not Displaying From Folder on Server????


twilitegxa

Recommended Posts

I am having an issue displaying my images that I have uploaded to my server. I have just changed the way in which the files are uploaded to my server (which now includes uploading two files on one form instead of just one), but I can't imagine how that would affect the way in which I display the images, because they are being saved into the same folder on my server, and I have double checked and the images are actually saving in the folder, as well as the path to the images are saving to the database (everything looks like it is right anyway). So, my problem somehow lies in how I am trying to display the images I guess. Here is a link to the page to view for an example:

 

 

http://midwestcreativeconsulting.com/jhrevell/collections/

 

 

If you click on one of the images, the first one (which you can actually see) is apparently working, while the second one you cannot see, but it appears to have saved correctly.

 

 

Here is my script for displaying the images:

 

 


<div class="contentleft">
<div class="toptitle">Collections<>
<div class="topsubtitle">
<h3 class="padding">Click on an image to view details about the piece of jewelry:</h3>
<?php


$dbhost = 'localhost';
$dbuser = 'username';
$dbpass = 'password';


$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');


$dbname = 'database';
mysql_select_db($dbname);


$all_records = "SELECT * FROM gallery";
$all_records_res = mysql_query($all_records);
$num_rows = mysql_num_rows($all_records_res);
echo "<div id='extra-padding'>";
if ($num_rows == '0') {
echo "<p class='empty'>No jewelry exists. Please <a href='http://midwestcreativeconsulting.com/jhrevell/add'>add</a> some.</p>";
} else {
while($image=mysql_fetch_array($all_records_res)){
echo "<div class='padding'><a href='http://midwestcreativeconsulting.com/jhrevell/view/?id=" .$image['id']. "'><img src='http://midwestcreativeconsulting.com/jhrevell/wp-content/themes/twentyten_3/upload/" .$image['image']. "' width='133' height='86' /><></a>";
}
}
echo "<>";
?>




<>


<>

 

 

So, it works for the first image, why not the second one? I can't understand what I am doing differently. Can anyone please help?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.