MySQL Forums
Forum List  »  Newbie

Re: Can't MySQL handle images?!
Posted by: Claude Martin
Date: January 31, 2005 09:34AM

> I would like to include images in MySQL database
> to advertise for my products. Is this possible?
> ... but it must be! I see it used on the Internet
> all the time. How can I include images in the
> database? Thanks a lot

it would be a good idea to learn html first and then php and then mysql.
you need to use the src attribute:

echo "<img src=\"$row[path]\">";

note: the img-tag does not need to be closed with </img>
eventually you need to use urlencode() if you use special characters as spaces or umlauts in filenames.

http://animalliberation.tk http://veganismus.ch
http://maqi.de http://tierrechtskochbuch.de

Options: ReplyQuote


Subject
Written By
Posted
January 29, 2005 01:09PM
January 29, 2005 03:09PM
January 29, 2005 08:49PM
January 30, 2005 05:14PM
Re: Can't MySQL handle images?!
January 31, 2005 09:34AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.