1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fatal error: Call to undefined function mysqli_connect()

Discussion in 'General Programming Chat' started by anthony1994, Dec 1, 2011.

  1. anthony1994

    anthony1994 Newbie

    Joined:
    Dec 17, 2010
    Messages:
    8
    Likes Received:
    1
    I get the error message:
    Code:
    Fatal error: Call to undefined function mysqli_connect() in /home/reward/public_html/include/db/Db_connection.php on line 42
    Basically, I edited a file called 'config.php' with the database information but for some reason it generates that error line.

    Could anyone please help me out?

    Would be greatly appreciated.
     
  2. kristofsx

    kristofsx Registered Member

    Joined:
    Nov 8, 2011
    Messages:
    51
    Likes Received:
    10
    Occupation:
    IM
    Location:
    Inside The Matrix
    what exactly is in that 42nd line on db-connection.php? looks like it 's getting wrong db login, check again, maybe You made a typo or smthng.
     
  3. Zapdos

    Zapdos Power Member

    Joined:
    Oct 22, 2011
    Messages:
    597
    Likes Received:
    708
    Location:
    Eastern North Carolina
    Make sure you have the mysqli module installed and enabled.
    Code:
    extension=php_mysqli.dll
    
    In php.ini
     
  4. olimix

    olimix Regular Member

    Joined:
    Jul 21, 2010
    Messages:
    232
    Likes Received:
    71
    Location:
    11h11 brothers
    yes or use mysql_connect() instead of mysqli_connect()