OriginalBoy Posted May 14, 2008 Share Posted May 14, 2008 Hey, Could anyone point me to a good tutorial to make a profile system. I have basic knowlege of PHP and have already made a user system. Thanks, Steve Quote Link to comment https://forums.phpfreaks.com/topic/105614-profile-tutorial/ Share on other sites More sharing options...
Skittalz Posted May 14, 2008 Share Posted May 14, 2008 What type of profile system? Quote Link to comment https://forums.phpfreaks.com/topic/105614-profile-tutorial/#findComment-541075 Share on other sites More sharing options...
OriginalBoy Posted May 14, 2008 Author Share Posted May 14, 2008 Just a simple one page one. Quote Link to comment https://forums.phpfreaks.com/topic/105614-profile-tutorial/#findComment-541097 Share on other sites More sharing options...
Skittalz Posted May 14, 2008 Share Posted May 14, 2008 Do you mean a profile system that displays all the information recorded in the database for a user? Quote Link to comment https://forums.phpfreaks.com/topic/105614-profile-tutorial/#findComment-541099 Share on other sites More sharing options...
OriginalBoy Posted May 14, 2008 Author Share Posted May 14, 2008 No I just need it so I can add a shoutbox or a comment system so I can then ask questions if I have a problem desiging there website and also a little place where I can update progress. Quote Link to comment https://forums.phpfreaks.com/topic/105614-profile-tutorial/#findComment-541103 Share on other sites More sharing options...
OriginalBoy Posted May 14, 2008 Author Share Posted May 14, 2008 Does anyone have any good links? Quote Link to comment https://forums.phpfreaks.com/topic/105614-profile-tutorial/#findComment-541170 Share on other sites More sharing options...
947740 Posted May 14, 2008 Share Posted May 14, 2008 http://www.trap17.com/index.php/help-creating-profile-website_t57082.html Quote Link to comment https://forums.phpfreaks.com/topic/105614-profile-tutorial/#findComment-541174 Share on other sites More sharing options...
OriginalBoy Posted May 15, 2008 Author Share Posted May 15, 2008 ^^^^^^^ did not really explain how to do it :-\ Quote Link to comment https://forums.phpfreaks.com/topic/105614-profile-tutorial/#findComment-541758 Share on other sites More sharing options...
947740 Posted May 15, 2008 Share Posted May 15, 2008 I do admit, it does not come right out and tell you how to do it. I thought there was some information that might help you. Quote Link to comment https://forums.phpfreaks.com/topic/105614-profile-tutorial/#findComment-541840 Share on other sites More sharing options...
OriginalBoy Posted May 16, 2008 Author Share Posted May 16, 2008 Ok then. Surely there must be a tutorial on the whole of the web that will show me how to make a profile system with my user system? Quote Link to comment https://forums.phpfreaks.com/topic/105614-profile-tutorial/#findComment-542795 Share on other sites More sharing options...
947740 Posted May 16, 2008 Share Posted May 16, 2008 Some clarification...you have a user system where they can login? So they have usernames and passwords, and you just want them to be able to add user information? That is not too difficult...if I get a chance I will post some example code. If that is not exactly what you are trying to do, just let me know. Quote Link to comment https://forums.phpfreaks.com/topic/105614-profile-tutorial/#findComment-542826 Share on other sites More sharing options...
947740 Posted May 16, 2008 Share Posted May 16, 2008 <?php // Assuming user has been logged in, and the username has been passed to the URL // E.G. www.somewhere.com/user.php?user=johndoe // The login file needs to redirect to that (^) page /* Assuming you have a database named "user_info" with these columnames, in this order: ID (serial) username password email name personal description *Note: this is just an example of columns you could have. */ if(isset($_GET['user'])) { // Connect to the database $user = $_GET['user']; $query = "SELECT * from user_info where username = \"$user\""; $user_info = mysqli_query($connection,$query); while($row = mysqli_fetch_row($user_info)) { $email = $row[3]; $name = $row[4]; $pers_descr = $row[5]; echo "<h3>$user</h3>\n<p>Email: $email</p>\n<p>$name: $name</p>\n<p>Personal Description:</p>\n"; } // *Note: this will perform the query, no mattter if they are logged in or not } else { // User needs add a username to the URL header("Location: index.php"); } ?> *Note: this was not tested Quote Link to comment https://forums.phpfreaks.com/topic/105614-profile-tutorial/#findComment-543053 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.