Worry with mysqli

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
SaNkA
Posts: 18
Joined: Tue Jan 11, 2005 1:52 pm

Worry with mysqli

Post by SaNkA »

Hi Thorsten and everybody :)

Sometimes I have this error on anything action (browse category, etc.) :

Code: Select all

Fatal error: Class 'mysqli' not found in /.../inc/mysqli.php on line 72
It's completly a random error and that's why I can't understand.
In most of cases, it's ok but suddenly error appears...

First I believed that was caused by db connection but not because other system (forums, etc.) are working fine.
Next, because of php version (but I tried with php4 AND php5) => same problem.

Line 72 of mysqli.php is :

Code: Select all

		$this->conn = new mysqli($host, $user, $passwd, $db);
I tried to install entire script and I have same error now and then.
I also search for a solution on this forum and I found this topic and this one for example.

I'm running on phpMyFAQ 1.5.3.
The unique modification what I done concernes problem editor which was reported on this forum and template.

Thank you again for this script!
Have a nice day.

Regards,
Thomas.
SaNkA
Posts: 18
Joined: Tue Jan 11, 2005 1:52 pm

Post by SaNkA »

Hum... :p

It seems ok now.

I installed two versions during five min...
To compare each section :?

And what I saw in data.php :shock:

in one :

Code: Select all

...
$DB["type"] = 'mysqli';
and in the new :

Code: Select all

...
$DB["type"] = 'mysql';
It's possible host problem causes modification of php file ?
For example when there is cluster problem ?

Any way, you can forget my previous post ;)

Thank's !
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

if you use "mysql", you're using the "old" MySQL extension for PHP4 and PHP5, if you're using "mysqli", you're using the new and improved MySQL extension for PHP5.

I'll take a look at the MySQLi code!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply