how to fix undefined index in PHP -
this little question, why getting error message?
severity: notice message: undefined index: filter filename: libraries/functions.php(656) : eval()'d code line number: 43
it says problem lays here:
$filter2 = $_get['filter'];
i have defined filter2, want use filter2 compare if contains word 'realscan'
the problem fixed if use isset(), convert integer, cant use that.
if($filter2 == 'realscan') { //something here }
you need check see if defined before use it:
$filter2 = isset($_get['filter']) ? $_get['filter'] : '';