Jump to content

Photos not appearing


garydt

Recommended Posts

$big = $row_Recordset2['bigimagename'];

 

<a href="editphoto.php"><img src="<?php print $big;?>" border="0" align="top" /></a></td> 

 

The photo is displayed on webpage when i try it locally but not on the remote server. I've created the same folders on the remote servers that i have locally so paths should be the same.

Heres what in the $row_Recordset2['bigimagename'] field-

./thumbnails/P6040019.JPG

Link to comment
https://forums.phpfreaks.com/topic/57427-photos-not-appearing/#findComment-284164
Share on other sites

This is the path to the image when i right click on where the image should be-

http://www.elvis-people.com/smallpics/P6040012.JPG

The path is right although in the database it is stored aas '.smallpics/P6040012.JPG'

is this right?

 

Script for uploading the photo-

$uploadsDirectory = './uploads/'; 

$uploadFilename = $uploadsDirectory.$fieldname['name'];

move_uploaded_file($fieldname['tmp_name'], $uploadFilename);

resizeimage($fieldname['name']);
$smallimage = './thumbnails/'.$_FILES['file']['name'];

resizelarger($fieldname['name']);
$smallpics = './smallpics/'.$_FILES['file']['name'];

unlink($uploadFilename);

mysql_select_db($database_elvisdb, $elvisdb);
$insertSQL = sprintf("INSERT INTO images (imageName, bigimagename, usnm, bigcaption) VALUES ('$smallimage', '$smallpics', '$user', %s)", 

 

script for displaying photo

 $big = $row_Recordset2['bigimagename'];
<td valign="top" aliign="CENTER">
             <a href="editphoto.php"><img src="<?php print $big;?>" border="0" align="top" /></a></td>
[code]

It works locally but not on the server.  hope i've given the right information you asked for.

[/code]

Link to comment
https://forums.phpfreaks.com/topic/57427-photos-not-appearing/#findComment-284791
Share on other sites

So, are you saying the image gets to the server but won't display, or that you cannot get it there?  I ask this because when I clicked on that JPG link, I got an e404.

 

I threw a test blue square up there.  Where it says to click on the image to edit, the IMG tag is just "".  Let me know if I am in the wrong place.

Link to comment
https://forums.phpfreaks.com/topic/57427-photos-not-appearing/#findComment-285145
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.