At the end of a validation page if the username is admin it redirects to another page.
If the username is anything else I want it to bring up a user page that is specific to a paticular username.
Is this easy to call from a database as long as the username is the the primary key?
Any ideas on the best way to code it?
Chris
Bringing up user data specifically depending on username.
Moderator: General Moderators
- daedalus__
- DevNet Resident
- Posts: 1925
- Joined: Thu Feb 09, 2006 4:52 pm
Code: Select all
if ($is_admin == TRUE)
{
// Redirect to admin page
}
// Otherwise print the user page- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA