doudou3716 2011-11-27 20:45 采纳率: 100%
浏览 125
已采纳

调用未定义的函数mysqli_connect

I have a fresh installation of XAMPP and I used to get PHP notices to turn them off I enbabled:

Default Value: E_ALL & ~E_NOTICE

in the php.ini.

And now I have the problem that I get the error message, which you can read in the title of this question. Though, the same function would work when I would not have that one error_reporting enabled.

When restarting the Apache server, I also get the error message:

syntax error, unexpected '&' in .../php.ini on line 110.

Line 110 is the error_reporting I enabled which you can see above.

I am trying to make sense out of this but I seem to have troubles. Any ideas what is going on here?

By the way, php_mysql.dll and php_mysqli.dll are both enabled in the php.ini file.

  • 写回答

2条回答 默认 最新

  • dongqiu3709 2011-11-27 20:48
    关注

    Default Value: E_ALL & ~E_NOTICE

    Isn't valid in the php.ini file. What you want is:

    error_reporting = E_ALL & ~E_NOTICE

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 如何让企业微信机器人实现消息汇总整合
  • ¥50 关于#ui#的问题:做yolov8的ui界面出现的问题
  • ¥15 如何用Python爬取各高校教师公开的教育和工作经历
  • ¥15 TLE9879QXA40 电机驱动
  • ¥20 对于工程问题的非线性数学模型进行线性化
  • ¥15 Mirare PLUS 进行密钥认证?(详解)
  • ¥15 物体双站RCS和其组成阵列后的双站RCS关系验证
  • ¥20 想用ollama做一个自己的AI数据库
  • ¥15 关于qualoth编辑及缝合服装领子的问题解决方案探寻
  • ¥15 请问怎么才能复现这样的图呀