-
- //Connect to SQL server database
- $conn=mssql_connect("localhost","sa",""); //Server name, username, password
- mssql_select_db("db_database06", $conn); //Connect to table_book database
- //Connect to mysql database
- $id=mysql_connect("localhost","root","123456"); //Local server localhost, username root, password root
- mysql_select_db(" db_database06",$id);
- mysql_query("set names gb2312"); //Connect to the shop_book database
- //Query all the contents of the data table book from the SQL server database
- ?>
-
|