HOW Mysql.......PHP
Moderator: General Moderators
HOW Mysql.......PHP
How could I stored images into mysql......and view it using PHP code..what are the formats used or supported....thanks for ur HELP...
Re: HOW Mysql.......PHP
THANKS FOR YOUR HELP
-
malcolmboston
- DevNet Resident
- Posts: 1826
- Joined: Tue Nov 18, 2003 1:09 pm
- Location: Middlesbrough, UK
you dont store the image, you store the href (path) to the image for eg
then in your HTML page to display it
Code: Select all
// pseudo
$array = myqsl_fetch_array($result, MYSQL_ASSOC);Code: Select all
<img src = "<?php print $array['image'] ?>" alt = "This is a picture">- launchcode
- Forum Contributor
- Posts: 401
- Joined: Tue May 11, 2004 7:32 pm
- Location: UK
- Contact:
-
malcolmboston
- DevNet Resident
- Posts: 1826
- Joined: Tue Nov 18, 2003 1:09 pm
- Location: Middlesbrough, UK