I am so sad that I haven't found any materials for a day.

Source: Internet
Author: User
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









Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.