This question already has an answer here:
- Why shouldn't I use mysql_* functions in PHP? 15 answers
- Turn off warnings and errors on php/mysql 6 answers
Can anybody help me to fix this error? I try with some solutions here but it appear another error in the index.php page. I asked the hosting company to downgrade the version but they don't accept.
Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home2/mohamed/public_html/portal/includes/DBclass.php on line 7
class mysqlQueryClass {
var $result,$resultNoRows;
function dbConnect(){
$dbConnect=mysql_pconnect(_DATA_BASE_HOST_, _DATA_BASE_USER_, _DATA_BASE_BASSWORD_)
or die(mysql_error());
mysql_select_db(_DATA_BASE_NAME_)
or die(mysql_error());
return $dbConnect;
Thanks in advance
</div>