Log in

View Full Version : Profiles [PHP][MySQL]



H0BJ0B
03-02-2008, 01:11 AM
Ok Guys,

I need to make a profiles system where users on a panel can enter their own details into the profiles and then the profiles need to be displayed on a page.

Anyone know a tut I can write one based on?

QuickScriptz
03-02-2008, 06:00 AM
Okay, no offense but if you need a tutorial to do that then I think you need to learn PHP..... all you really have to do is make a page with the form inputs for all the profile info and then when they hit 'Update Profile' have all the info they typed in saved into a mysql db under their username/name.

For the view page just do something like this;



<?php
$user = $_GET['user'];
$u = mysql_fetch_array(mysql_query("SELECT * FROM `profiles` WHERE `user` = '$user'"));
// Print out all the users profile info...
// echo $u['name'];
// echo $u['birthday'];
// etc.
?>


And the url for the view profile page would look like this:


http://yoursite.com/viewprofiles.php?user=NAMEHERE

H0BJ0B
03-02-2008, 12:38 PM
I don't know php that's why I'm asking :)
Thanks for that help though.
Anyone else know any other places I could find a tutorial?

Moh
03-02-2008, 02:07 PM
www.techtuts.com

Luckyrare
03-02-2008, 02:09 PM
Well I think that he is trying to say is before you want to make a user system, you need to want to learn PHP.

Hayd93
03-02-2008, 03:52 PM
I think he wants a profile system like the 1 powerpanel has

MrCraig
03-02-2008, 04:27 PM
Um.. Read through PP's profile code,

See where everything goes etc.

The try and make your own, but make sure to include your own style and not just copy simons or you'll never learn.

For example, i learnt by reading KP.

Want to hide these adverts? Register an account for free!