Jump to content

Recommended Posts

hence i concatenated the path and name,

IF you are sure the full path is in that field, (check the database) your need up the varchar length (255) should do it, then re-upload the image, and test the new image (or update he database field manually)

 

its gone 5am here.. so i am going to hit the sack

 

EDIT:

if your only using imagepath as the full path+name then your need to update the code

<a href="image_show.php?id=<?php echo $row_Recordset1['id'];?>"><img src="/<?php echo $row_Recordset1['photopath'].$row_Recordset1['name'] ;?>" height="200" width="200"/></a>

 

to

<a href="image_show.php?id=<?php echo $row_Recordset1['id'];?>"><img src="/<?php echo $row_Recordset1['photopath'];?>" height="200" width="200"/></a>

 

and

 

  echo " photo: <img src=\"/{$row['photopath']}{$row['name']}\" height=\"200px\" width=\"200px\" />";

to

  echo " photo: <img src=\"/{$row['photopath']}\" height=\"200px\" width=\"200px\" />";

 

however you NEED to update the photopath varchar length

Link to comment
https://forums.phpfreaks.com/topic/235810-problem-with/page/2/#findComment-1212199
Share on other sites

so if you use this

<a href="image_show.php?id=<?php echo $row_Recordset1['id'];?>"><img src='<?php echo $row_Recordset1['photopath'] ;?>' height="200" width="200"/></a>

what do you receive?

 

the same: Name: bubble gun photo: state: NY

 

I know its going to be something simple. it always is.

Link to comment
https://forums.phpfreaks.com/topic/235810-problem-with/page/2/#findComment-1212205
Share on other sites

got it.

 

I had to take out $row[name]. it was calling the image and the name as the image.

 

$row = mysql_fetch_array( $result );
  echo "Name: ".$row['name'];
  echo " photo: <img src=\"/{$row['photopath']}{$row['name']}\" height=\"200px\" width=\"200px\" />";
  echo " state: ".$row['state'];
  echo " state: ".$row['photopath'];
} else {
  echo 'BAD PHOTO ID';

Link to comment
https://forums.phpfreaks.com/topic/235810-problem-with/page/2/#findComment-1212209
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.