致命错误:未捕获错误:调用未定义的函数mysql

编程入门 行业动态 更新时间:2024-10-24 00:23:25
致命错误:未捕获错误:调用未定义的函数mysql_pconnect()(Fatal error: Uncaught Error: Call to undefined function mysql_pconnect())

致命错误:未捕获错误:调用D:\ xampp \ htdocs \ IKM \ system \ database \ drivers \ mysql \ mysql_driver.php中的未定义函数mysql_pconnect():91

function db_pconnect() { if ($this->port != '') { $this->hostname .= ':'.$this->port; } return @mysql_pconnect($this->hostname, $this->username, $this->password); }

Fatal error: Uncaught Error: Call to undefined function mysql_pconnect() in D:\xampp\htdocs\IKM\system\database\drivers\mysql\mysql_driver.php:91

function db_pconnect() { if ($this->port != '') { $this->hostname .= ':'.$this->port; } return @mysql_pconnect($this->hostname, $this->username, $this->password); }

最满意答案

此功能已从PHP 7.0中删除,并已在PHP 5.5中弃用。 很可能你正在使用PHP 7.0。

要解决此问题,您需要使用mysqli扩展名或PDO扩展名。

This function has been removed as of PHP 7.0 and deprecated in PHP 5.5. Chances are you're using PHP 7.0.

To fix this, you need to use either the mysqli extension, or the PDO extension.

更多推荐

本文发布于:2023-08-05 10:19:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1431215.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   函数   未定义   mysql

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!