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? Link to comment https://forums.phpfreaks.com/topic/227548-hi-linking-an-image-with-a-session-id/ 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. Link to comment https://forums.phpfreaks.com/topic/227548-hi-linking-an-image-with-a-session-id/#findComment-1173773 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.