MySQL to MySQLi

Problems with the Windows version of XAMPP, questions, comments, and anything related.

MySQL to MySQLi

Postby zohrapardesi » 01. March 2017 02:55

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,
zohrapardesi
 
Posts: 7
Joined: 21. October 2016 03:56
XAMPP version: v3.2.2
Operating System: Windows 7

Re: MySQL to MySQLi

Postby Nobbie » 01. March 2017 11:34

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.
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04

Re: MySQL to MySQLi

Postby zohrapardesi » 02. March 2017 01:30

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 :(
zohrapardesi
 
Posts: 7
Joined: 21. October 2016 03:56
XAMPP version: v3.2.2
Operating System: Windows 7

Re: MySQL to MySQLi

Postby Nobbie » 02. March 2017 11:31

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?
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 66 guests