通过查看整个 Internet 上的建议,我尝试将所有查询转换为 mysqli.
By seeing suggestions throughout the Internet I tried to convert all my queries to mysqli.
但是 mysqli 在我的 XAMPP 中不起作用.我检查了我的 PHP 文件夹,发现有一个 php_mysqli.dll
文件...仍然不起作用
But mysqli is not working in my XAMPP. I checked my PHP folder and there is a php_mysqli.dll
file... still it doesn't work
你有没有把它声明到 php.ini 来加载它?如果没有,请尝试在 php.ini 中找到它并添加 php_mysqli.dll
Have you declare it to php.ini to load it? If no, try find this in php.ini and add php_mysqli.dll
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
; If you wish to have an extension loaded automatically, use the following
; syntax:
;
; extension=modulename.extension
;
; For example, on Windows:
;
; extension=msql.dll
;
; ... or under UNIX:
;
; extension=msql.so
;
; ... or with a path:
;
; extension=/path/to/extension/msql.so
;
; If you only provide the name of the extension, PHP will look for it in its
; default extension directory.
;
; Windows Extensions
; Note that ODBC support is built in, so no dll is needed for it.
; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5)
; extension folders as well as the separate PECL DLL download (PHP 5).
; Be sure to appropriately set the extension_dir directive.
extension= php_mysqli.dll
这篇关于如何在 XAMPP 上启用 mysqli?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!