1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Fatal error: Call to undefined function mysqli_connect()

Discussion in 'Databases' started by Anthony1994, Dec 1, 2011.

  1. #1
    I get the error message:
    Fatal error: Call to undefined function mysqli_connect() in /home/reward/public_html/include/db/Db_connection.php on line 42
    Code (markup):
    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.
     
    Anthony1994, Dec 1, 2011 IP
  2. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #2
    create a php file with the following content
    
    <?php
    phpinfo();
    ?>
    
    PHP:
    Run the file. See if mysqli is included in your PHP installation. If it's not you'll have to recompile php with mysqli included (on Linux) or include the dll in php.ini (in Windows).
     
    Rukbat, Dec 1, 2011 IP
  3. fithraw

    fithraw Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Have you defining your database name, username, and password for your dbase? :)
     
    fithraw, Dec 8, 2011 IP
  4. Deltahost

    Deltahost Banned

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    108
    #4
    this mean you have not installed "mysqli" extension for PHP
     
    Deltahost, Dec 9, 2011 IP
  5. stevemack

    stevemack Peon

    Messages:
    136
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    install mysqli for PHP and configure database username, password, hostname etc.
     
    stevemack, Dec 14, 2011 IP