Jump to content

problem with


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

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.