PHP Access database conversion to MySQL database code (_php) tutorial

Source: Internet
Author: User
Tags mysql tutorial
PHP Tutorial Access database Tutorial Convert to MySQL Tutorial database code
"Access digital library into MySQL database tutorial" can not understand the friend add qq:345838256/////////////////////////////////
I collected the data is access, but my program is MySQL, so wrote a program, the program three steps away, share a bit ... A friend who likes to manipulate a database should be used.///////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///
1. Connecting mysql////////////////////////////////////////////////////////////

$dbhost = "localhost:3307";//server
$db = "Dataname";//Database
$dbuser = "root";//username
$dbpass = "*******";//Password
$db _qianzhui= "sdb_";//Table Prefix
$link =mysql_connect ($dbhost, $dbuser, $dbpass);
if (! $link) echo "link failed!";
else echo "Success!!!";
mysql_query ("SET NAMES ' UTF8 '"); //////////////////////////
mysql_query ("Set CHARACTER set UTF8"); >>> Solve Chaos
mysql_query ("SET Character_set_results=utf8");/////////////>>> code problem
mysql_select_db ("{$db}");//////////////////////////////////

1 2

http://www.bkjia.com/PHPjc/630857.html www.bkjia.com true http://www.bkjia.com/PHPjc/630857.html techarticle PHP Tutorial Access database tutorial conversion to MySQL Tutorial database code//"Access digital library into MySQL database tutorial" can not understand the friend 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.