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///////////////////////////...