fugix Posted May 8, 2011 Share Posted May 8, 2011 if you have the full path and the image name stored in your photopath field...then all you should need to due is put that as your src in your img tag Link to comment https://forums.phpfreaks.com/topic/235810-problem-with/page/2/#findComment-1212195 Share on other sites More sharing options...
MadTechie Posted May 8, 2011 Share Posted May 8, 2011 Humm that doesn't match the output heres what I got Madtechie Name: iuhgu photo: uploads/Yourpartners state: asdfsg Link to comment https://forums.phpfreaks.com/topic/235810-problem-with/page/2/#findComment-1212197 Share on other sites More sharing options...
calvinschools Posted May 8, 2011 Author Share Posted May 8, 2011 Humm that doesn't match the output heres what I got Madtechie Name: iuhgu photo: uploads/Yourpartners state: asdfsg this is what i got that was an older post: Name: iuhgu photo: state: asdfsg url is still good. Link to comment https://forums.phpfreaks.com/topic/235810-problem-with/page/2/#findComment-1212198 Share on other sites More sharing options...
MadTechie Posted May 8, 2011 Share Posted May 8, 2011 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 More sharing options...
calvinschools Posted May 8, 2011 Author Share Posted May 8, 2011 its funny you say that about the varchar i was just realized how small it was set to. The extension of some of the photos were getting cut off. I upped it to 255. Still only get name and state Link to comment https://forums.phpfreaks.com/topic/235810-problem-with/page/2/#findComment-1212201 Share on other sites More sharing options...
fugix Posted May 8, 2011 Share Posted May 8, 2011 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? Link to comment https://forums.phpfreaks.com/topic/235810-problem-with/page/2/#findComment-1212202 Share on other sites More sharing options...
calvinschools Posted May 8, 2011 Author Share Posted May 8, 2011 thanks techie. Really appreciated. Im sure we'll figure it out. talk to you tomorrow Link to comment https://forums.phpfreaks.com/topic/235810-problem-with/page/2/#findComment-1212203 Share on other sites More sharing options...
MadTechie Posted May 8, 2011 Share Posted May 8, 2011 remember to either fix the existing data manually and/or to re-upload a new photo night Link to comment https://forums.phpfreaks.com/topic/235810-problem-with/page/2/#findComment-1212204 Share on other sites More sharing options...
calvinschools Posted May 8, 2011 Author Share Posted May 8, 2011 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 More sharing options...
fugix Posted May 8, 2011 Share Posted May 8, 2011 so your having trouble displaying the image correct? go to "view source" in your browser and look to see what the link and img tags look like...and paste it here Link to comment https://forums.phpfreaks.com/topic/235810-problem-with/page/2/#findComment-1212206 Share on other sites More sharing options...
calvinschools Posted May 8, 2011 Author Share Posted May 8, 2011 this looks like a problem.whats with the duplicate name Name: bubble gun photo: <img src="/uploads/bubble gun.jpgbubble gun" height="200px" width="200px" /> state: NY state: uploads/bubble gun.jpg Link to comment https://forums.phpfreaks.com/topic/235810-problem-with/page/2/#findComment-1212207 Share on other sites More sharing options...
fugix Posted May 8, 2011 Share Posted May 8, 2011 for your source, your just echoing the <?php echo $row_Recordset1['photopath'] ;?> correct? no extra name or anything? Link to comment https://forums.phpfreaks.com/topic/235810-problem-with/page/2/#findComment-1212208 Share on other sites More sharing options...
calvinschools Posted May 8, 2011 Author Share Posted May 8, 2011 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 More sharing options...
calvinschools Posted May 8, 2011 Author Share Posted May 8, 2011 Thank you so much again fugix. You guys have helped me out so much. Now I just need to drop the comment system onto this template and done. If you guys weren't around...don't know. Link to comment https://forums.phpfreaks.com/topic/235810-problem-with/page/2/#findComment-1212210 Share on other sites More sharing options...
fugix Posted May 8, 2011 Share Posted May 8, 2011 glad we could help you out Link to comment https://forums.phpfreaks.com/topic/235810-problem-with/page/2/#findComment-1212211 Share on other sites More sharing options...
calvinschools Posted May 8, 2011 Author Share Posted May 8, 2011 i might be back on tomorrow with some questions about the comment system but maybe not. Later Link to comment https://forums.phpfreaks.com/topic/235810-problem-with/page/2/#findComment-1212212 Share on other sites More sharing options...
fugix Posted May 8, 2011 Share Posted May 8, 2011 i might be back on tomorrow with some questions about the comment system but maybe not. Later lol....i'l be here! Link to comment https://forums.phpfreaks.com/topic/235810-problem-with/page/2/#findComment-1212213 Share on other sites More sharing options...
MadTechie Posted May 8, 2011 Share Posted May 8, 2011 got it. I had to take out $row[name]. it was calling the image and the name as the image. lol, looks like you missed my edit Link to comment https://forums.phpfreaks.com/topic/235810-problem-with/page/2/#findComment-1212463 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.