drvxnivoqf17568697 2016-02-06 18:35
浏览 238

未捕获的错误:调用未定义的函数mysql_connect() - 每次运行我的php文件时它都会显示此错误

Im using Windows 8.1, using xampp as a server im a newbie, learning PHP, i have this issue in connecting php to the database

; Windows: "\path1;\path2"
include_path=".;\xampp\php\PEAR"

also removed the comments from the php.mysql.dll

;extension=php_exif.dll      ; Must be after mbstring as it depends on it
extension=php_mysql.dll
extension=php_mysqli.dll
;extension=php_oci8.dll      ; Use with Oracle 10gR2 Instant Client

kindly help me, solve this issue... :(

  • 写回答

1条回答 默认 最新

  • dsh84723 2016-02-06 19:42
    关注

    That's because mysql extension has been removed. Judging from that I would say that you are using an outdated lesson.

    The new extension is mysqli and so, instead of mysql_connect, use mysqli_connect. Take into account that the parameters might be in different order for mysqli.

    评论

报告相同问题?

悬赏问题

  • ¥15 2024-五一综合模拟赛
  • ¥15 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭