Page 1 of 1

inserting images into tables

Posted: Fri Feb 18, 2005 12:06 pm
by naz
please help!!!!!!!!!!!!!

i am new to php basically i am inserting images into my databse and i want them to load in my browser in a specific layout such as three across and three down but i dont know how at the moment all it is doing is that it is inserting the image one below the other and so on can somebody please help

thanks in advance
naz :cry:

Posted: Fri Feb 18, 2005 12:15 pm
by John Cartwright
You probably shouldn't store the actual image itself, but the filename and path. Pulling images from a db constantly can get a bit slow, atleast slower than simple filenames.

Posted: Fri Feb 18, 2005 4:07 pm
by feyd
Naz, I guess you didn't read throug the stickies in this board (General Discussion).. as there is one that specifically states this is not for code questions. :roll:


And yes, Phenom is correct, storing images directly in a database is usually a big waste of time and resources. There have been many threads on this subject here on DevNet, try searching for "+image +database +blob" or similar.


Moved to PHP - Code.