Hi,
I have the following code, which whilst works gives me notices, which I want to avoid - without changing the error warnings!
while ($row = $this->db->fetchAssoc()){
if( array_key_exists("resultID", $row) &&
array_key_exists("date", $row) &&
array_key_exists("competition", $row) &&
array_key_exists("hteam", $row) &&
array_key_exists("hscore", $row) &&
array_key_exists("ateam", $row) &&
array_key_exists("ascore", $row) &&
array_key_exists("report", $row)
){
$this->resultList[] = new Result($row[resultID], $row[date], $row[competition], $row[hteam], $row[hscore], $row[ateam], $row[ascore], $row[report]);
} else {
echo "Error creating Result Object";
}
}
The notice says that I am assuming resultID ...
Cheers in advance