Hi All,
Im new to PHP. In the script I've written, i have the following line:
if($coursesTaug ht[$i]->empId == $record-
// do something
}
when the if condition executes, i get the foll message: Notice: Trying
to get property of non-object in C:\Program Files\Apache Group
\Apache2\htdocs \ENGR_COURSES\u pdateCoursesTau ght.php on line 33
The script works but the message is annoying. I do not want to alter
the error reporting in PHP.ini.
Is there any other way of avoiding this message?
Thanks,
Vin
Im new to PHP. In the script I've written, i have the following line:
if($coursesTaug ht[$i]->empId == $record-
>getElementsByT agName('EMPL_ID ')->item(0)->nodeValue){
}
when the if condition executes, i get the foll message: Notice: Trying
to get property of non-object in C:\Program Files\Apache Group
\Apache2\htdocs \ENGR_COURSES\u pdateCoursesTau ght.php on line 33
The script works but the message is annoying. I do not want to alter
the error reporting in PHP.ini.
Is there any other way of avoiding this message?
Thanks,
Vin
Comment