List:General Discussion« Previous MessageNext Message »
From:Jef S Date:July 16 2003 4:14pm
Subject:RE: How can I display images from a mySQL Database in a web page?
View as plain text  
What I have found that works, in PHP, is using a form that allows the
user to browse for a file or an image. Upon submitting the form the file
is uploaded to a set location on the web server and the name of the file
is added to the database.

When displaying the information associated with the image, write the php
page so it has the image tag and all you do is query the database for
the name of the file. Let php do the rest.

I realize this isn't a php list but this is what I have done in the
past. You can check the www.php.net newsgroups archives for steps on
accomplishing this task.


Good luck,
Jef 

> -----Original Message-----
> From: Dan Anderson [mailto:dan@stripped]
> Sent: Tuesday, July 15, 2003 4:31 PM
> To: Partap Davis
> Cc: mysql@stripped
> Subject: Re: How can I display images from a mySQL Database in a web
page?
> 
> > I think there is a way to insert binary image data in your html, but
is
> > there any particular reason you need to do that?
> 
> Yes, my client's server is running with particularly restrictive PHP
> safe mode settings and has informed me that dynamic images are a /must
> have/.  :: bangs head against wall. starts to bleed ::
> 
> So, it is relatively easy to store images into a BLOB, and slightly
> tricky to chop them up into the packet size and reassemble them.  But
> trying to figure out how to do this has boggled my mind and I
appreciate
> all the help of the community.  :)
> 
> -Dan
> 
> 
> --
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe:    http://lists.mysql.com/mysql?unsub=1


Thread
How can I display images from a mySQL Database in a web page?Dan Anderson15 Jul
  • Re: How can I display images from a mySQL Database in a web page?colbey15 Jul
  • Re: How can I display images from a mySQL Database in a web page?Partap Davis16 Jul
    • Re: How can I display images from a mySQL Database in a web page?William R. Mussatto16 Jul
    • Re: How can I display images from a mySQL Database in a web page?Dan Anderson16 Jul
      • Re: How can I display images from a mySQL Database in a web page?Keith C. Ivey16 Jul
      • RE: How can I display images from a mySQL Database in a web page?Jef S16 Jul
  • Re: How can I display images from a mySQL Database in a web page?Peter Burden16 Jul
  • RE: How can I display images from a mySQL Database in a web page?M. Bader16 Jul