I'm receiving the following error in php: Notice: Undefined index: panel_num
.
I think I need to use isset()
but I can't seem to get it to work with while
global $d;
$i = 1;
while($i <= $d['panel_num']){
$options[] = array(
"name" => "Panel".$i,
"id" => "panel_".$i,
"std" => "",
"type" => "panel");
$i++;
}
What is the proper way to resolve this issue?