------------------------re.php---------------------------------
RegisterUser Registration
-------------------------------------register.php------------------------------------
<title>Register</title>
Query ($query); if ($result) {echo "Registration is successful!
";} Else{echo "Registration failed! ";} $db->close ();? > Click to login
--------------------------select.php-----------------------------------
$row [Cityid], "City" = $row [city]); }//var_dump ($select); echo Json_encode ($select); }?>
-----------------login.html----------------------------
LoginUser Login
------------------------login.php-------------------------------------
Login
Query ($query); $num _results = $result->num_rows;if ($num _results >0) {//echo "Login successful! "; include "Userinfo.php";} Else{echo "User name or password is wrong, please confirm!" ";} $db->close ();? >
-----------------------------userinfo.php----------------------------------
<title>Login</title>
Left JoinGender as G on u.genderid = G.genderidLeft joinProvince as P on U.provinceid = P.provinceidLeft joinCity as C on U.cityid = C.cityidLeft joinDepartment as D on u.departmentid = D.departmentidLeft joinPositions as PO on u.positionid = Po.positionid "; $result =mysql_query ($query, $connection);?>
The above describes the PHP instance-registration & login, including the aspects of the content, I hope to be interested in PHP tutorial friends helpful.
User ID |
work number |
real name |
sex |
Province /th> |
Cities |
Departments |
positions |
remarks |
actions |
!--? while ($row =mysql_fetch_arra Y ($result)) {?-->
!--? echo $row [userid]. " "; "; |
"!--? echo $row [Userno]. " "; |
!--? echo $row [username]. " "; " |
"!--? echo $row [gender]. " ";? gt; |
!--? Echo $row [province]. " "; " |
"!--? echo $row [city]. " ";?; |
!--? echo $row [department]. " ";. |
!--? echo $row [positions]. " "; " |
"!--? echo $row [remark]. " "; "; | " td> edit !--?}?-->