Getting Error in Ajax response
Getting Error in Ajax response
meer_waqar
Posts: 1Questions: 1Answers: 0
Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in
Please resolve this issue, while sending the ajax request to server i am not getting the proper response from it.
This discussion has been closed.
Answers
this is because your database connection uses mysql which has been deprecated in never versions of php
you can either update your connection, or turn off the error by adding a line to your page with the connection.
eg
<?php
<?php > ?>error_reporting(E_ALL ^ E_DEPRECATED);
I'd suggest you update whatever PHP script you are using to use PDO or mysqli.
Allan