Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP and images

Status
Not open for further replies.

Caraldur

IS-IT--Management
Mar 22, 2004
8
US
I'm having problems displaying an image who's location is stored in a MySql database. I am running PHP/MySql on a windows 2K machine. I used the Record Store example found on the Macromedia website to help me with this problem but I can't see what I'm doing wrong. I have looked at the Record Store example in Dreamweaver but I can't see what is different with mine that is making it not function. Can someone help me through this problem?
 
post more info - your code, what you see happening that's not right, any error msgs...

Need more info to help!

[cheers]
Cheers!
Laura
 
I didn't write the code. I'm using Dreamweaver to create the site and it generated the code. I'm not getting any errors, but I'm getting the picture place holder.
 
well you would go insert and image -- then once the file browser comes up you would choose data source from up top and then chose the field in the table that houses the image path.

zzzzzz
 
That is exactly how I have it setup. I'm not sure if the path that I entered into the DB is the problem or is it something else.

the path that I entered for the image is: assets/part_pic/32000162.jgp

That is exactly what I have entered into my URL field for my inventory table.

 
how is it being called

you might want to try /assets/part_pic/32000162.jgp


the "/" before your string could be missing

but when i do this it looks like so

Code:
src="[URL unfurl="true"]http://www.domain.com/images/<?php[/URL] echo $row_connId['print_image']; ?>"

or just

Code:
<?php echo $row_connId['print_image']; ?>

depends on if i want it relative or absolute.

zzzzzz
 
Thanks, your first suggestion worked. For reason I had to enter the path for the website. You would like Dreamweaver would already know where that is. :)


 
sorry for the double post but you might not need the first suggestion -- youmight just need to add "/" to your path name -- that would work as well -- i was just using complete heading for illustration purposes.

zzzzzz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top