PHP does not have MySQL support enabled - PHP 7's fault? PHP does not have MySQL support enabled - PHP 7's fault?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

PHP does not have MySQL support enabled - PHP 7's fault?

Started by Pockett, December 15, 2017, 11:14:26 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Pockett

Hello,

My website recently had to move web hosts, but my new host uses only PHP 7. I tried installing, but I receive an error message: "PHP does not have MySQL support enabled". Am I right in believing this is due to PHP 7?

Since the topics I've seen seem to be old, is there any way to get it working on PHP 7 yet if that's the case? I do still have the original database and image folders, but I'm not sure right now if I'll even be able to use them.

Thanks.


Oppie

#2
The reason people are getting that message, is because you guys are not using MySQLi to access databases.  You should check for version of php and act accordingly.  MySQLi is the current way to connect to the database instead of MySQL_Connect.

**** link removed ****

For examples on how to use MySQLi.  More and more hosts are switching to PHP7 and that is what they use.

phill104

What do you mean " You Guys"

If you are talking Coppermine in general then there is an updated version that uses mysqli and php7. So no need  to post a link. As suck I have removed the link you added.
It is a mistake to think you can solve any major problems just with potatoes.