Solve the problem of “uncaught error: class’ mysqli ‘not found” in php7

Specific solutions: https://www.jianshu.com/p/9d077b2f85bf

Found a lot of solutions on the Internet, only this can really solve the problem

Of course, the fundamental problem is that the mysqli library has not been found. We can use the following code to determine whether there is a mysqli Library:

if

(

!

function_ exists

(

‘mysqli_ init’

)

&& amp;

!

extension_ loaded

(

‘mysqli’

)){

echo

‘Wedon

\’

thavemysqli!!!’

;

}

else

{

echo

‘Phewwehaveit!’

;

}

Similar Posts: