forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 install => Topic started by: Pockett on December 15, 2017, 11:14:26 pm

Title: PHP does not have MySQL support enabled - PHP 7's fault?
Post by: Pockett on December 15, 2017, 11:14:26 pm
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.
Title: Re: PHP does not have MySQL support enabled - PHP 7's fault?
Post by: ron4mac on December 16, 2017, 12:32:31 am
http://forum.coppermine-gallery.net/index.php/topic,79013.0.html
Title: Re: PHP does not have MySQL support enabled - PHP 7's fault?
Post by: Oppie on February 15, 2019, 02:18:54 am
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.
Title: Re: PHP does not have MySQL support enabled - PHP 7's fault?
Post by: phill104 on February 15, 2019, 07:05:24 am
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.