Re: [PHP-DB] Retrieving Image Location in MySQL

2009-03-06 Thread Sashikanth Gurram
Hi, Thanks a lot for the suggestion. It is working fine but there is some problem. When I introduced the piece of code you have suggested into my code, I am getting a space for the picture but nothing is there in that space. It is just blank. I do not know the reason for this. Further, this is

Re: [PHP-DB] Retrieving Image Location in MySQL

2009-03-06 Thread mrfroasty
Hello, Storing only location of the image in dB wouldnt be any different than other string/data retrieved from the dB.That means if you have something like this in html documents whereby $image_location comes from the dB It should work without header stuffs Example P:S Replace $image_locati

Re: [PHP-DB] Retrieving Image Location in MySQL

2009-03-06 Thread Sashikanth Gurram
Hi JP, I am just storing the location of the image on the database. I want to keep them private and retrieve them through scripting. The images are stored in a folder on my PC. Just to give you an example, this is the location of a particular image as stored in the database. C:\Users\Sashika

Re: [PHP-DB] Retrieving Image Location in MySQL

2009-03-06 Thread Bastien Koert
On Fri, Mar 6, 2009 at 1:06 PM, Joao Gomes Madeira wrote: > Hi Sashi: > > You're incurring in this error because the headers for the page have > already been issued in the head section of your page. > When you issue the php header() function, it will generate an error. > > Anyway, you are storing

Re: [PHP-DB] Retrieving Image Location in MySQL

2009-03-06 Thread Joao Gomes Madeira
Hi Sashi: You're incurring in this error because the headers for the page have already been issued in the head section of your page. When you issue the php header() function, it will generate an error. Anyway, you are storing a path to a file in the database. My question is: do you want to put yo

Re: [PHP-DB] Retrieving Image Location in MySQL

2009-03-06 Thread Sashikanth Gurram
Dear all, I have been trying to retrieve the location of a image from database and display the image in the browser using PHP. I have written a sort of code for the purpose. All I am getting in my browser after using the code is a long set of ASCII characters with the following warning *Warnin