代码如下 | 复制代码 |
$dsn = 'mssql:dbname=bookStore_demo;host=192.168.1.106'; $user = 'sa'; $password = '123'; //mssql_connect('192.168.1.106','sa','123'); //echo 22; try { // echo 11; $dbh = new PDO($dsn, $user, $password); } catch (PDOException $e) { var_dump($result); |
时间: 2024-10-15 02:20:35