Re: Image in Mysql db

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: Image in Mysql db
Groups: php.db 
Request: Send a blank email to php-db+get-21609@lists.php.net to get a copy of this message
Read this: (Does a good job explaining uploads) http://www.php.net/manual/en/features.file-upload.php How I personally handle images in mysql, is not put the image in the database (Does it even allow this??) But just put the relative, or complete PATH to the image. So, your database would store: '/www/htdocs/IMAGES/some_picture.jpg' Then you can pull that from your database and use the HTML <img> tage to display it. HTH -Brad > Hi, > > I know this should be simple but being a beginner... > > How do you insert an image into a mysql table and also how can you > upload an image to a mysql table via a form. > > Thanks in advance. > > Neil >

« previous php.db (#21609) next »