chronister Posted May 13, 2007 Share Posted May 13, 2007 I assume that when a person logs in you use a session variable. When you set the session variable for the login, just grab the user id as well and set that as a session variable. When a person uploads an image, just add another piece into your code to insert that session variable containing their user id in the image table. That way when you go to pull the image out of the database, you can do something like $user_id=$_SESSION['user_id']; "SELECT * FROM images WHERE user_id='$user_id'"; Link to comment https://forums.phpfreaks.com/topic/51059-solved-can-any-1-tell-me-or-show-me-how-i-can-put-images-into-a-database/page/2/#findComment-252108 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.