Call to undefined function: mysqli_connect()

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sanjeevvs
    New Member
    • Nov 2007
    • 1

    #1

    Call to undefined function: mysqli_connect()

    Call to undefined function: mysqli_connect( ) ,


    i m using php5 with phpmyadmin.
    i am comfortabley working with mysqli in localhost.but when i launch on web it is showing above error.
    can anybody suugest me ?
  • amitpatel66
    Recognized Expert Top Contributor
    • Mar 2007
    • 2358

    #2
    Originally posted by sanjeevvs
    Call to undefined function: mysqli_connect( ) ,


    i m using php5 with phpmyadmin.
    i am comfortabley working with mysqli in localhost.but when i launch on web it is showing above error.
    can anybody suugest me ?
    Please try below:

    Go to <installdir>\ph p5 and open php.ini with notepad.

    Add a line
    extension=php_m ysqli.dll

    Save changes and restart IDE

    Comment

    • mwasif
      Recognized Expert Contributor
      • Jul 2006
      • 802

      #3
      but when i launch on web it is showing above error.
      • Make sure you have PHP5 on webserver.
      • Make sure mysqli is available on webserver.

      To confirm both, make a .php file containing the following code.
      [PHP]<?
      phpinfo();
      ?>[/PHP]
      Upload this file to the web and open it in browser. In the output page, check the PHP version and find mysqli.

      Instructions are available in PHP manual to enable mysqli support.

      Comment

      Working...