MySql and Images

Started by
0 comments, last by sathenzar 20 years, 2 months ago
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.
Advertisement
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.

This topic is closed to new replies.

Advertisement