Activity Stream
48,167 MEMBERS
61187 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 7 of 7
  1.     
    #1
    Member
    Website's:
    FunLinkz.com Smyu.in

    Post MySQL error

    I am trying to install a script. The database connection is successful but when opening the index page I get:

    Code: 
    Fatal error: Class 'mysqli' not found in /home/***/public_html/***/file*name.php on line **
    And in file*name.php I have:
    Code: 
    $this->db = new mysqli($config['dbhost'], $config['dbuser'], $config['dbpass'], $config['dbname'] );
    I tried changing mysqli to mysql but din't work. Any help would be appreciated.
    Funny Reviewed by Funny on . MySQL error I am trying to install a script. The database connection is successful but when opening the index page I get: Fatal error: Class 'mysqli' not found in /home/***/public_html/***/file*name.php on line ** And in file*name.php I have: $this->db = new mysqli($config, $config, $config, $config ); I tried changing mysqli to mysql but din't work. Any help would be appreciated. Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Respected Member
    You need to install or have your host install mysqli.

    http://www.php.net/manual/en/mysqli.installation.php

  4.     
    #3
    Member
    Website's:
    FunLinkz.com Smyu.in
    But why cant I use mysql?
    MySQL is installed.

  5.     
    #4
    Member
    Website's:
    sborg.us
    You could ask the script's developer to change the MySQLi calls to MySQL calls.

    Just removing that extra 'i' from function calls won't help

    V3g3ta | Halcyon | Abhi

  6.     
    #5
    Member
    Website's:
    FunLinkz.com Smyu.in
    Any tutorial to do it myself?

  7.     
    #6
    Member
    Website's:
    sborg.us
    You should go ahead and ask the host to install MySQLi extension. Future versions of PHP might not support MySQL and that may cause trouble.

    V3g3ta | Halcyon | Abhi

  8.     
    #7
    Respected Member
    There are none I can find on the older mysql to mysqli .
    But there must be many instances of the mysqli throughout this code.. All the newer scripts are being based in the newer MySql versions.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Database error-mysql error
    By saini in forum vBulletin
    Replies: 8
    Last Post: 8th Nov 2011, 06:54 AM
  2. MYSQL Error while Import via MYSQL Dumper (Error
    By desibreaker in forum Server Management
    Replies: 10
    Last Post: 5th Aug 2011, 07:26 PM
  3. MySQL Error
    By bxflow in forum Web Development Area
    Replies: 32
    Last Post: 27th Jun 2010, 05:56 PM
  4. MySQL Error
    By II AnDo II in forum Web Application/Script Support
    Replies: 2
    Last Post: 17th Aug 2009, 08:45 PM
  5. MySQL error
    By mash-e1 in forum Webmaster Discussion
    Replies: 2
    Last Post: 28th Mar 2009, 12:12 PM

Tags for this Thread

BE SOCIAL