
October 12th, 2003, 09:54 PM
|
|
Contributing User
|
|
Join Date: Sep 2003
Posts: 116
Time spent in forums: 2 h 27 m 49 sec
Reputation Power: 6
|
|
|
displaying image by refering to db
Hi guys,
I am having a prob with displaying an image by refering to the db.. here is the case..
i have a template base web page and i used to store all the info in mysql and let the php code to display the output by refering to the db..
for instance, to display the contents of the center frame, i use echo $row['body']; <-- something like that..
now i have stored an image url in my db... e.g: dsa.jpg and try to display it in the center frame.. it works okay in other frames (drop down menu selection of image) except the body frame (text field used to insert the image location in the db).
In the body frame, it not only not able to diplay the image correctly,, it does not even show the square box with a red cross inside to indicate there is a image there.. in other words, it seems like it dun really recognize my <img src> code and skipped that part of html code.
when i refresh and view my html code, my code became
<img src=\\\"dsa.jpg\\\" width=\\\"32\\\" height=\\\"32\\\" border=\\\"0\\\">
i am wondering why it has so many slashes added in automatically and why the php seem to skip this part of the html code.. is it the php.ini configuration having prob or what..
p.s: for your guys info, all of these do work in the old server but now it does not seem to work anymore in the new server (hosting).
hope u guys can understand what i am trying to say.
please advise. TQ.
|