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 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?