Getting Error in Ajax response

Getting Error in Ajax response

meer_waqarmeer_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.

Answers

  • crush123crush123 Posts: 417Questions: 126Answers: 18

    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
    error_reporting(E_ALL ^ E_DEPRECATED);

    <?php > ?>
  • allanallan Posts: 63,772Questions: 1Answers: 10,511 Site admin

    I'd suggest you update whatever PHP script you are using to use PDO or mysqli.

    Allan

This discussion has been closed.