php-db | 2002091
Date: 09/06/02
- Next message: Wilmar Perez: "[PHP-DB] not a valid MySQL result"
- Previous message: Terry Romine: "Fwd: [PHP-DB] database result: tables with 2 coloumns"
- Maybe in reply to: Neil: "[PHP-DB] Image in Mysql db"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
>
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Wilmar Perez: "[PHP-DB] not a valid MySQL result"
- Previous message: Terry Romine: "Fwd: [PHP-DB] database result: tables with 2 coloumns"
- Maybe in reply to: Neil: "[PHP-DB] Image in Mysql db"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

