PHP access database to mysql database code (1/2) _ PHP Tutorial

Source: Internet
Author: User
Tags mysql tutorial
Code for converting the phpaccess database to the mysql database (12 ). Php Tutorial access database tutorial to mysql tutorial database code "ACCESS database to MYSQL database tutorial" do not understand friends can add QQ: 345838256 php Tutorial access database tutorial to mysql tutorial database code
// If you cannot understand the tutorial on converting an ACCESS database to a MYSQL database, you can add QQ: 345838256 /////////////////////////////////
// The data collected by myself is ACCESS, but my program is mysql, so I wrote a program, and the program took three steps to share it... anyone who likes to operate databases should use the database. ///////
//////////////////////////////////////// //////////////////////////////////////// //////////////////////////////////
/// // 1. connect to mysql ////////////////////////////////////// //////////////////////

$ Dbhost = "localhost: 3307"; // server
$ Db = "dataname"; // Database
$ Dbuser = "root"; // User name
$ Dbpass = "********"; // password
$ Db_qianzhui = "sdb _"; // table prefix
$ Link = mysql_connect ($ dbhost, $ dbuser, $ dbpass );
If (! $ Link) echo "link failed! ";
Else echo "successful !!! ";
Mysql_query ("set names 'utf8 '");//////////////////////////
Mysql_query ("set character set UTF8"); //>
Mysql_query ("SET CHARACTER_SET_RESULTS = utf8'"); //>
Mysql_select_db ("{$ db }"); //////////////////////////////////

1 2

Access database tutorial to mysql tutorial database code // friends who cannot understand the "ACCESS database to MYSQL database tutorial" can add QQ: 345838256 ///////////////////////////...

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.