takn25 Posted February 13, 2011 Share Posted February 13, 2011 Hi, I would like some guidance. I have discussed with a few people and they have told me its best to store an image only in either one of these Mysql BLOB or in a folder on the website. I understand how to link the image, stored in a blob with the users SESSION but I dont understand how will I link the image stored on a folder with the user who is logged in at that time. Basically in more clear words what I am after is if the user logged in uploads an avatar and I store the avatar on a folder how will I tell php that this is the avatar for the user logged in. Another question is there a way I can create a folder with PHP for each individual user registered on my website example with their ID? Quote Link to comment Share on other sites More sharing options...
lastkarrde Posted February 13, 2011 Share Posted February 13, 2011 how will I tell php that this is the avatar for the user logged in Alter your users table in the database, give it a column for avatar. Store the path to the specific users' avatar in that column. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.