<?php $nazwa = $rekord['nazwa']; } function generuj_menu($nazwa , $options, $deflaut="") { $html = "<select name="$nazwa">"; foreach($options as $value => $label) { $html .= "<option "; if ($value == $default) $html .= "SELECTED"; $html .="VALUE ="$value">$label</option>"; } $select .="</select>"; return($html); } ?>
i wyzuca mi taki bład
Warning: Missing argument 1 for generuj_menu() in /panel_rejestracji.php on line 9
Co robie zle?