Notice: Undefined index

A

Anonymous

Guest
ello..can anyone help me on how to disable this notice. it keep appearing on my page.
Notice: Undefined index: 2 in c:\program files\easyphp1-7\www\approve_network.php on line 12

Notice: Undefined index: 3 in c:\program files\easyphp1-7\www\approve_network.php on line 12

Notice: Undefined index: 4 in c:\program files\easyphp1-7\www\approve_network.php on line 12

Notice: Undefined index: 5 in c:\program files\easyphp1-7\www\approve_network.php on line 12

Notice: Undefined index: 6 in c:\program files\easyphp1-7\www\approve_network.php on line 12
 
add this to the top of your code:
Code:
error_reporting(E_ERROR | E_WARNING | E_PARSE);
 
Also:
Code:
<?php

// Report all errors except E_NOTICE
error_reporting(E_ALL ^ E_NOTICE);

?>
More information here.

However i suggest you to always use only E_ALL, keeping your code as clean as possible!
 
Back
Top