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 Identification
Moderator: General Moderators
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 !