Log on to login in php, and log on to login in php. Login in php, login loginLogin in php? Phprequire .. includeDBClass. php; $ username $ _ POST [UserName]; $ password $ _ POST [Password]; if (empty ($ username) | login in php, login in php
Login
Exec_ SQL ($ SQL); $ total = mysql_num_rows ($ result); if ($ total = 0) {DBClose (); go_Msg ("the registered user has not passed the administrator review or the user name and password do not match! Enter again! ",".. /Default.html "); exit;} else {$ Rs = $ db-> fetch_array ($ result); // add a value and log on to session_register (" username "); session_register ("usertype"); $ _ SESSION ["usertype"] = $ Rs ['usertype']; $ _ SESSION ["username"] = $ username; // echo $ _ SESSION ["username"]; if ($ _ SESSION ["usertype"] = 1) {Go_Msg ("login successful! "," Default. php "); // header ('Location: http://163.com ');} if ($ _ SESSION [" usertype "] = 2) {Go_Msg (" login successful! "," ../User2/default_1.php ");} if ($ _ SESSION [" usertype "] = 3) {Go_Msg (" login successful! "," ../User3/default_2.php ");} // header ('Location: default. php');} DBClose (); // why do I ask hovertree.com?>
Recommended: http://www.cnblogs.com/roucheng/p/phpdongtai.html
Login? Php require ".. /include/DBClass. php "; $ username = $ _ POST ['username']; $ password = $ _ POST ['password']; if (empty ($ UserName) |...