Pull data from my to insert into ms2008 skeleton PHP

Source: Internet
Author: User

<?PHP$server= "XEJMZWMDIXE9CIJ";//MS, server IP address, if local, can be written as localhost$uid="";//MS, user name$pwd="";//MS, password$database= "Wzd";//MS database name$conn=mssql_connect ($server,$uid,$pwd) or die("Connect failed");//making MS Database connectionsmssql_select_db ($database,$conn);//Ms$con=mysql_connect("localhost", "root", "root");//making my database connectionif(!$con)//my  {   die(' Could not connect: '.Mysql_error()); }//my//Read mymysql_select_db("Examples",$con);//my$result=mysql_query("SELECT * from Think_form");//my/*my in-loop Ms*/ while($row=Mysql_fetch_array($result))//my{    $query 123= "INSERT into users (admin) VALUES ('".)$row[' title ']. "')";//Ms    $haha=mssql_query ($query 123);//Ms}/*my in-loop Ms*///Cycle Display Ms$query= "SELECT * from users";//Ms$row=mssql_query ($query);//Ms while($list=mssql_fetch_array ($row))//Ms{       Print_r($list);//Ms       Echo"<br>";//Ms}?>

Pull data from my to insert into ms2008 skeleton PHP

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.