1

I've searched in "google" a lot but I have not found a perfect answer. I've seen many questions in "stackoverflow" too but these do not describe my problem.

Fatal error: Call to undefined function mysqli_connect() and Fatal error: mysqli_connect() these two question are close to my problem,but these are not solving my problem,anyway my problem is:

I've written php code which will connect my mysql database server.

<?php
  echo "entering db";
  $link=mysqli_connect('localhost','root','qwerty');
  echo "entered";
?>

NOTES :

I've edited

  1. extension_dir = "C:\PHP\ext"
  2. extension=php_mysqli.dll
  3. result of

    ini_set('display_errors', 1); error_reporting(E_ALL)** ; is the same **Fatal error: Call to undefined function mysqli_connect()

  4. I have executed echo 'ini: ', get_cfg_var('cfg_file_path'); and its displaying C:\PHP\php.ini

I am using Apache 2.2.11 and PHP 5.2.17 and MySQL 5.5 does anyone have any idea,whats wrong there?

  1. And I've "PHP_MYSQLI.DLL" In EXT folder.

EDIT : surprisingly there is no information about database server in phpinfo().can anyone tell me now what is the problem. EDIT 2:

which one to download non thread safe or thread safe..i have downloaded non thread safe

4

1 回答 1

1

我不知道它是否会帮助其他人..但我仍然给出这个答案,因为我在这里没有得到任何适当的解决方案。我已经尝试了所有错误检查,我确信我的代码中没有错误。正如我所说的那样扩展已正确加载我没有任何适当的解决方案。我卸载了所有设置并安装wamp而不是单独安装所有软件包。相同的代码现在在wamp中运行完美

于 2013-06-22T22:07:16.823 回答