hello all!
when i list usersnames from my database i would like to put thier picture next to them. Unfortunately, i cant seem to store images directly into my database (filetype 'image' is not supported in my mySQL database). Instead, i've been storing a directory string, eg. "images/icons/pic001.jpg"
How would i create the dynamic images next to each name?
--Guy
trying to make dynamic images
Moderator: General Moderators
-
guycrossley
- Forum Newbie
- Posts: 9
- Joined: Mon May 12, 2003 8:46 pm
- AVATAr
- Forum Regular
- Posts: 524
- Joined: Tue Jul 16, 2002 4:19 pm
- Location: Uruguay -- Montevideo
- Contact:
you only have to create a dinamic tag for the imaga that you want to display, when you retreive the user data, you have to retreive the "string" of the picture and save it in a variable, for example $image and then
voila you displayed your image...
Code: Select all
<?php
echo '<img src="'.$image.'">';
?>