用PDO连接数据库是没问题的:
$dsn = "mysql:host=localhost;dbname=php_jquery_example";try { $dbo = new PDO($dsn, 'root', '123');} catch(Exception $e) { die($e->getMessage());}$sth = $dbo->prepare('SELECT event_id, event_title, event_desc FROM events WHERE event_id < ?');$sth->bindParam(1, $calories, PDO::PARAM_INT);$sth->execute();
foreach ($dbo->query('select * from events') as $row) { ...
下面是aparch错误日志打印出的信息:
[error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
PHP Warning: PHP Startup: Unable to load dynamic library '..\..\php-5.2.14-Win32\ext\php_mssql.dll' - Ҳָģ顣
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '..\..\php-5.2.14-Win32\ext\php_pdo_mssql.dll' - Ҳָģ顣
in Unknown on line 0
帮忙分析.
用pdo的好处是?????
PHP Warning: PHP Startup: Unable to load dynamic library '
不能加载动态库:php_mssql.dll php_pdo_mssql.dll
是不是因为缺少这两个库影响了页面的执行。
PHP Warning: PHP Startup: Unable to load dynamic library '
不能加载动态库:php_mssql.dll php_pdo_mssql.dll
是不是因为缺少这两个库影响了页面的执行。
用pdo的好处是?????
通用,更换数据库系统只需更换 DSN 串问题解决没有?
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号