I am using PHP classes to connect to a database. I can not solve the problem - please help me with this.
I have a function:
function getCampus($cm_id) //returns campus name
{
$this->query = "select cm_name from campus where cm_id = ".$cm_id.";";
$rd = $this->executeQuery();
@$data = $rd->fetch_assoc();
}
and when I delete @from @$data, it does not work. Please help me: explain what the alternative path will be. Thank.
source
share