Forums
This topic is locked
SQL and Images
Posted 20 Oct 2002 22:30:13
1
has voted
20 Oct 2002 22:30:13 Alex Kanakaris posted:
Hi, how can I load images on a page using mysql? I can have a column that has the appropriate HTML tag but this is very time consuming. Is there any other way? If not, then how can I build my form to accept the image name only, and then to insert the full HTML tag
(<img src...etc)
into the DB?
Thank you very much
Replies
Replied 24 Oct 2002 10:22:13
24 Oct 2002 10:22:13 Julio Taylor replied:
lexios,
i personally use "dynamic image php" extension by Tim Green, which is really good generally as it allows you to specify a default "no image" message and other cool shit.
however the other way to do it is to simply add an image and edit the code so that the <i>name</i> of the image you will use is drawn from a database (using a PHP echo or the ASP equivalent). Provided your images are in the same folder, you should be able to draw the images from it.
have a look on the "extensions" section of this site and find the extension, it's the best option in most cases.
------------------------
Julio Mellado
PHP | MySQL | UD4
ICQ: 19735247
MSN:
i personally use "dynamic image php" extension by Tim Green, which is really good generally as it allows you to specify a default "no image" message and other cool shit.
however the other way to do it is to simply add an image and edit the code so that the <i>name</i> of the image you will use is drawn from a database (using a PHP echo or the ASP equivalent). Provided your images are in the same folder, you should be able to draw the images from it.
have a look on the "extensions" section of this site and find the extension, it's the best option in most cases.
------------------------
Julio Mellado
PHP | MySQL | UD4
ICQ: 19735247
MSN: