User Identification

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
petenyce105
Forum Newbie
Posts: 4
Joined: Wed Feb 11, 2004 9:52 am

User Identification

Post by petenyce105 »

basically i have apopup window that asks a user to type a facility id if that id matches then i want it to show a certain page?
so if faciltiy id is 001and it matches it will show member.html
but if facility id is 002 and it matches it will show member2.html

how would i do the script to check id in database and show the file according to the facility id?
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post by ol4pr0 »

you might wanna do some like this..

Code: Select all

// youre whole db connection

$usr
$pwd
$db
/bla bla bla....

// query

$query = "SELECT * from $db where customerid = '"  .$customerid . "' ";


// i guess you should make a if statement inside youre script

if $custerid == 1 or something like that !
Post Reply