Jump to content
  • Advertisement


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


MySql and Images

This topic is 5355 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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.

PlaneShift - A MMORPG in development.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!