Page 1 of 1

User Identification

Posted: Thu Feb 12, 2004 10:38 am
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?

Posted: Thu Feb 12, 2004 11:40 am
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 !