<?php
if($_SERVER['REQUEST_METHOD']=='GET'){
require_once('dbConnect.php');
$result = mysql_query("SELECT count(*) from TableName;");
echo mysql_result($result, 0);
mysqli_close($con);
}
?>
In the above code sample, I can see that require_once is using older values of the file "dbConnect.php". The login credentials present in dbConnect.php is of older values, and not the latest one I updated recently. I can see this in the error message. Please suggest how to overcome this error.