inserting images into tables

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
naz
Forum Newbie
Posts: 11
Joined: Fri Feb 18, 2005 11:16 am

inserting images into tables

Post 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:
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
Post Reply