Displaying URLs in database as images
Posted: Sun Apr 02, 2006 5:36 pm
I'll explain as best I can.
I have got a database which stores the address of an uploaded image and the name. The data type of both is text.
I want to display the image, and the code gives me a variable like.....
This will give me.....
How, using this, can i display the image?
Hope you lot can help.
Adam
I have got a database which stores the address of an uploaded image and the name. The data type of both is text.
I want to display the image, and the code gives me a variable like.....
Code: Select all
$result["address"].....and will display (as text) if I use the code....gallery/bike1.JPG
Code: Select all
{
echo $result["address"] . " <br>";
echo $result["name"] . " <br><br>----------------<br><br>";
}Hope you lot can help.
Adam