$error;这个类是用$db = new db( $config );实例化的,如果连接是有效的,它会工作得很好,但是如果连接失败,看起来PDOException实际上并不能工作。catch执行$this->myerror(...)函数完全失败!我得到了一个PHP Fatal error: Call to a member function myerror() on a non-object in /.../lib/pd
我无法连接到smarterasp.net域中的MSSQL数据库。我在用:
<?php $conn = new PDO("mssql:host=host_name_string;dbname=database_name_string", "username_string", "password_string");
// set the PDO er