实例一
代码如下 | 复制代码 |
//国内的PNR码连接 $conn = mssql_connect($hostname,$dbuser,$dbpasswd); //连接MSSQL { ?> |
参考代码二、
代码如下 | 复制代码 |
$mssql_link = mssql_connect($db_host,$db_msuser,$db_mspass) or mssql_select_db($db_msname,$mssql_link); $mysql_link = mysql_connect($db_myhost,$db_myuser,$db_mypass) or die("mysql数据库连接失败".mysql_error()); mysql_select_db($db_myname,$mysql_link); $msquery = mssql_query("select top 1 * from buyok_produc",$mssql_link); $vars = ”; while ($row = mssql_fetch_array($msquery,$mssql_link)){ $sql = echo $sql; $aa=mysql_query($sql, $mysql_link); if ($aa){ ?> |