jaybeeb Posted October 21, 2008 Share Posted October 21, 2008 Created a Login page using php/sql but am confused , when it comes to the user actually logging in how do I make each user have their own individual page. The page format will be the same with each user but each user will be able to upload and delete a file once they login and I obvisouly I only want the user that is logged in at the time to be able to upload / delete files on somebody elses account, can anyone point me in the right direction? Link to comment https://forums.phpfreaks.com/topic/129388-login-question/ Share on other sites More sharing options...
JasonLewis Posted October 21, 2008 Share Posted October 21, 2008 You need to use something like sessions to store say, the users ID that is in the MySQL database. Then, using $_GET make a page called profile.php that retrieves the id from the url. So when you go to www.site.com/profile.php?id=5 it'll grab the 5 from the URL. Example: $id = $_GET['id']; With this ID, you can now query the database to extract only the information related to that ID. Then you can display the extracted data in however format you like. Then the upload files part, I would search Google for tutorials on how to upload a file. But get the basic profile page working first. There are plenty of tutorials around about that as well. Link to comment https://forums.phpfreaks.com/topic/129388-login-question/#findComment-670773 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.