I want to run cms I get such an error, please help!

akinamiyuki

New Member
Jun 13, 2019
7
0
I want to run cms I get such an error, please help!
Where do I have to fix it?
You must be registered for see images attach
You must be registered for see images attach
 

Attachments

  • mysql.PNG
    mysql.PNG
    33.3 KB · Views: 1

Maatt

Active Member
Aug 29, 2012
162
158
mysql_connect is deprecated in later versions of PHP. I suspect that you are using a later version of PHP thus you have this error.

To fix this you can either:
  1. Downgrade to an earlier version of PHP which supports mysql_connect (not recommended).
  2. Update all deprecated code (adopting a PDO or mysqli approach). (best approach)
You can find plenty of guides to do this online.
 

Karel

Member
May 15, 2019
80
13
Change 'public function MySQL' on line 28 to 'function __construct'. The __construct function will be called automatically when you create an object from the class. Leave the parameters as they are
 

Users who are viewing this thread

Top