akinamiyuki New Member Jun 13, 2019 7 0 Jul 1, 2020 #1 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 33.3 KB · Views: 1
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
Maatt Active Member Aug 29, 2012 162 158 Jul 1, 2020 #2 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: Downgrade to an earlier version of PHP which supports mysql_connect (not recommended). Update all deprecated code (adopting a PDO or mysqli approach). (best approach) You can find plenty of guides to do this online. Upvote 0 Downvote
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: Downgrade to an earlier version of PHP which supports mysql_connect (not recommended). Update all deprecated code (adopting a PDO or mysqli approach). (best approach) You can find plenty of guides to do this online.
K Karel Member May 15, 2019 80 13 Jul 2, 2020 #3 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 Upvote 0 Downvote
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