首页 > 代码库 > 从my里调出数据插入到ms2008 骨架 php

从my里调出数据插入到ms2008 骨架 php

<?php$server ="XEJMZWMDIXE9CIJ";//ms,服务器IP地址,如果是本地,可以写成localhost$uid ="";  //ms,用户名$pwd =""; //ms,密码$database ="wzd"; //ms数据库名称$conn =mssql_connect($server,$uid,$pwd) or die ("connect failed");//进行ms数据库连接mssql_select_db($database,$conn);//ms$con = mysql_connect("localhost","root","root");//进行my数据库连接if (!$con)//my  {  die(‘Could not connect: ‘ . mysql_error());  }//my//读取mymysql_select_db("examples", $con);//my$result = mysql_query("SELECT * FROM think_form");//my/*my里循环ms*/while($row = mysql_fetch_array($result))//my{    $query123 ="INSERT INTO users (admin) VALUES (‘".$row[‘title‘]."‘)";//ms    $haha=mssql_query($query123);//ms}/*my里循环ms*///循环显示ms$query ="select * from users";//ms$row =mssql_query($query);//mswhile($list=mssql_fetch_array($row))//ms{       print_r($list);//ms       echo "<br>";//ms}?>

 

从my里调出数据插入到ms2008 骨架 php