Thread
:
How to display image from a database
View Single Post
09-18-2012, 08:21 PM
PM User
|
#
10
Len Whistler
Senior Coder
Join Date: Jul 2002
Location: Vancouver, BC Canada
Posts: 1,323
Thanks: 26
Thanked 100 Times in 100 Posts
I wouldn't store the path to the image in the database, just the file name - with or without the ext. Ex:
ny-city-9456.jpg
or
ny-city-9456
The image path should be in the while loop that queries the database.
----
__________________
Leonard Whistler
Users who have thanked Len Whistler for this post:
gazaian1
(09-20-2012)
Len Whistler
View Public Profile
Visit Len Whistler's homepage!
Find More Posts by Len Whistler