"; } if ($access == 0) { // Check user id and password $sql = "select id, password, clientcode from client where clientcode='".$code."';"; $rows = GetRows($dbname, $sql); if ( list($member_id, $pass, $clientcode) = mysql_fetch_row($rows) ) { // Check password if ($password == $pass) { // if password is correct, update the last logon time $today = date("Y-m-d H:i:s"); // check the rights, admin => admin_index.php $_SESSION["clientcode"] = $code; $_SESSION["member_id"] = $member_id; $_SESSION["access_right"] = "clients"; //header("Location: main.php"); echo ""; exit; } else { print "Wrong Password!
"; } } else { print "Client code is not existed!
"; } // end if - getrows } } // end if ?>
         

 

 

 

會員登入
- 登入名稱
- 密碼