PHP5 and MySQL database operations

Source: Internet
Author: User

1 Create a database table:

2 reading data

2.1 Build 01.php

2.2 Establishment of Member.php

3 Modifying Data

3.1 Setting up level.php (Modify data)

3.2 Establishment of up_level.php

4 Adding data

4.1 Establishment of add_member.php

4.2 Establishment of newmember.php

5 Creating a class database connection

5.1 Creating a cls_mysql.php class file

5.2 Establishment of test.php

6 Summary

6.1 mysql_connect (): Establish a connection to the MySQL server

6.2 mysql_select_db (): Select Database

6.3 mysql_query (): Execute database query

6.4 mysql_fetch_array (): Get Database records

6.5 mysql_num_rows (): Gets the number of records obtained by the query

6.6 mysql_affected_rows (): Number of rows affected by the most recent operation

6.7 mysql_insert_id (): ID value of the most recent record inserted

From:http://www.cnblogs.com/yongfeng/archive/2010/03/19/1689644.html

PHP5 and MySQL database operations

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.