benoitlapointe Posted June 19, 2008 Share Posted June 19, 2008 Hello everybody, I'm a newbie to PHP. I am building a simple member page protected by username and password. Its built, i can login and get to my member page. I can display the member name based on the user that is connected. NOW my only problem is i don't know how to get for each different user a different image to display (beside the name). I have a database called "worker" I have a table called "members" I have 4 fields (id, real_name,username,password) I wanna add another field called user_picture, in which each user has their own picture. Let's say user Bob signs in, well "Welcome Bob will appear" and also the picture would appear. So what i don't know how to do is make that picture appear, what kind of field do i need to create, and what is the php code for that Thanks alot Link to comment https://forums.phpfreaks.com/topic/111008-user-image-based-on-database-help/ Share on other sites More sharing options...
phpzone Posted June 19, 2008 Share Posted June 19, 2008 You want want it to be a BLOB. However, you could also just upload the image to the filesystem with the insert_id as the filename prefix when you create the user? Do you _need_ it in the database? Link to comment https://forums.phpfreaks.com/topic/111008-user-image-based-on-database-help/#findComment-569610 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.