I am so sad that I did not find any Cainiao after I checked my documents for a day. I just got into the company, so I could not do anything as simple as I did, baidu hasn't found a solution for a long time. I want to know how to add, delete, modify, and query a user management module? Accept First, select & nbsp; * & nbsp; from & nbsp; user & nbsp; the output of user is too much to worry about me. I did not find any materials for a day.
Cainiao, just getting into the company, let's do the project.
It's the simplest. Baidu hasn't found a solution for a long time.
I want to know how to add, delete, modify, and query a user management module?
Receiving First, how is the output of select * from user output?
Also, after each output result, add two buttons to modify and delete the result.
How can this problem be solved? add, delete, modify, and query user Baidu
------ Solution --------------------
For the source code of my post, refer.
Session_start ();
Include 'Conn/conn. php ';
Include 'check _ login. php ';
Include 'Page. class. php ';
?>
Change Hospital Information
123
Modify Hospital Information
Hospital name
Location
Total number of students
Gender or not
Requirement male
Demand girl
Operation
Operation
$ SQL = "select * from hos ;";
$ Result = mysql_query ($ SQL) or die (mysql_error ());
$ Page = new Page (mysql_num_rows ($ result), 15 );
$ SQL = "select * from hos order by id {$ page-> limit }";
$ Result = mysql_query ($ SQL) or die (mysql_error ());
$ Info = mysql_fetch_array ($ result );
Do {?>
If ($ info ['same']) {echo "yes ";}
Else {echo "no ";};
?>
If ($ info ['same']) {echo $ info ['Men'];}
Else {echo "-" ;}?>
If ($ info ['same']) {echo $ info ['wom '];}
Else {echo "-" ;}?>
"> Change
"Onclick =" return confirm ('are you sure you want to delete it? ') "> Delete