Archived

This topic is now archived and is closed to further replies.

sathenzar

MySql and Images

Recommended Posts

Hey everyone, while I was creating my forum board I came across a problem, how do you store images in a database table? Like under a table I''ve made called usrs I would like an image field. How would you do this? And one mroe question....so I don''t have to login every time I want to make a post how can i just log in once? I was going to use cookies but I was told that they are to easy to break into and arn''t good to hold people out. And I would to it by using the "somepage.php?usraccount=whoever&pass=mypassword" but then anyone can just look at their history. So anyone have any ideas? Thanks.

Share this post


Link to post
Share on other sites
I would suggest just storing the location/name of the image file and save the image outside the database. That way if you have two users with the same image they can reference the same image without have to store a second copy.

If you really want to save the image in the database then look at the BLOB datatype.

-------
Andrew
PlaneShift - A MMORPG in development.

Share this post


Link to post
Share on other sites