I am doing project in php.I used ajax code to upload the image.
It done nicely, everything is working but display notice and i want 2 remove this notice…
Notice is as follows:
- Notice: Undefined variable: errorList in C:\xampp\htdocs\ajax\scripts\ajaxupload.php on line 18 Notice:
Undefined variable: errorList in
C:\xampp\htdocs\ajax\scripts\ajaxupload.php on line 132
i am not understanding what is the meaning of message…
How to remove this Notice?
To remove the notice you must either check is this variable
$errorListdefined and if it is, then checkajaxupload.php on line 18andajaxupload.php on line 132does it see it there or is it out of the scope.The other thing you could do is place at the beginning of PHP file
ini_set( 'display_errors', 0 );, but this really bad idea sinceNoticeis made to show what you are doing wrong.