Skip to content
WJunction - Webmaster Forum

MySQL error

Status
Not open for further replies.

Funny

Experienced Member
521
2011
66
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.
 

6 comments

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 :)
 
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.
 
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.
 
Status
Not open for further replies.

About the author

F
Experienced Member · Joined
Im expert vB user :D Trolling
521
Messages
66
Reactions
28
Points
Grow your business

Advertise on WJunction

Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.

  • Premium & Premium+ Sticky
  • Dedicated section banners
  • Site-wide banner advertising
Explore advertising options
Back
Top Bottom