msaada wataalamu wa it.

msaada wataalamu wa it.

Kanjunju

Member
Joined
Oct 8, 2010
Posts
92
Reaction score
6
i am new to php scripting.I have created a login page. but all other registered users are accessing only one member access page. I want to make a script that will allow members to login to their different members home page with their names. Please i need step by step guide.
 
i am new to php scripting.I have created a login page. but all other registered users are accessing only one member access page. I want to make a script that will allow members to login to their different members home page with their names. Please i need step by step guide.

How much, will you pay for??
 
i am new to php scripting.I have created a login page. but all other registered users are accessing only one member access page. I want to make a script that will allow members to login to their different members home page with their names. Please i need step by step guide.

Just add aanother column on your table just call it any name, eg roles then you may decide regarding to types of users(members) you have, lets say you have three category of users normal, advance and admin.. then say 1 stands for normal, 2 stands for advanced and 3 stands for admin. Also make sure you create three different pages for each user category... then on your verification script after checking whether username(name) and email are correct then check whether user_role==1 direct to normal page, if user_role==2 direct to advanced etc... I assume you used procedure approach then use the following function to redirect
PHP:
<?php header('Location:  destination.php'); ?>...

That is the approach, even though its simple approach but good for the start...
 
Just add aanother column on your table just call it any name, eg roles then you may decide regarding to types of users(members) you have, lets say you have three category of users normal, advance and admin.. then say 1 stands for normal, 2 stands for advanced and 3 stands for admin. Also make sure you create three different pages for each user category... then on your verification script after checking whether username(name) and email are correct then check whether user_role==1 direct to normal page, if user_role==2 direct to advanced etc... I assume you used procedure approach then use the following function to redirect
PHP:
<?php header('Location:  destination.php'); ?>...

That is the approach, even though its simple approach but good for the start...

thank you my dear.
 
Back
Top Bottom