I've been looking for a whole day of information.

Source: Internet
Author: User
I've been looking for a whole day of information.
Rookie in the rookie Ah, just into the company let's do the project AH
The simplest will not ah, Baidu has not found a way to a half-day


Want to ask now want to do a user Management module additions and deletions, what should be done?
Receive First, select * from user output how to output AH
Also, after each output, add a two button to modify the delete
Well, how do you do that? User Baidu The problem of adding and deleting


------Solution--------------------
I stick to the source code you refer to.
 Session_Start ();
Include ' conn/conn.php ';
Include ' check_login.php ';
Include ' page.class.php ';
?>




<title>Change of hospital information</title>




123



































$sql = "SELECT * from Hos;"; $result = mysql_query ($sql) or Die (Mysql_error ()), $page =new page (mysql_num_rows ($result), and $sql = "SELECT * from Hos Order by ID {$page->limit} ", $result = mysql_query ($sql) or Die (Mysql_error ()); $info = Mysql_fetch_array ($result);d o { ?>
Modify Hospital Information
Hospital name location Total demand whether sex demand male demand female action Action
if ($info [' same ']) {echo "is";}
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 to delete it? ') ' > Delete





  • Related Article

    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.