Page 1 of 1

MySQL to MySQLi

PostPosted: 01. March 2017 02:55
by zohrapardesi
Hi All,

Is there someone to help me please?

I am getting this Message at the top of my browser:

"Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in C:\Myxampp\htdocs\testsite\Connections\localhost.php on line 9"

Is there a way to change MySQL to MySQLi????

How can I update MySQL to MySQLi without un-installing xampp?

Regards,

Re: MySQL to MySQLi

PostPosted: 01. March 2017 11:34
by Nobbie
zohrapardesi wrote:Is there a way to change MySQL to MySQLi????


1) This is german(!) board (see above: "Xampp auf Deutsch"). The english part of this board is in the bottom.

2) No, there is no way to "change" MySQL to MySQLi, you have to change your code. The MySQL API is not supported in PHP 7.x. It is not a question of installing or uninstalling Xampp, it is a question of your Code.

Re: MySQL to MySQLi

PostPosted: 02. March 2017 01:30
by zohrapardesi
Sorry, as i posted into German forum and thanks for reply.

my First dynamic website is still not completed and i don't know code writing, I am unable to understand what I should do to complete my website. Shall I install older version of xampp with older version of PHP? but in this case i think dream weaver will not support again the same story :(

Re: MySQL to MySQLi

PostPosted: 02. March 2017 11:31
by Nobbie
zohrapardesi wrote:Shall I install older version of xampp with older version of PHP?


Yes, if you cannot change your code, this is the only working alternative.

zohrapardesi wrote:but in this case i think dream weaver will not support again the same story :(


I dont know Dreamweaver, but if it requires a newer PHP you have a big problem. In that case you should either learn how to change your PHP code, of find the author/programmer of that script (i think, it is not you?!) and ask him for an upgrade.

P.S.: Cant you stay on an old Dreamweaver version as well?