I have this error:
Fatal error: Cannot redeclare get_db_fields_dropdown() (previously declared in /var/www/web517/html/THEPICTUREWORLD/includes/functions.php:1317) in /var/www/web517/html/THEPICTUREWORLD/includes/functions.php on line 1437
This ist my Functions.php:
{
$ban = $ban_banned;
}
return $ban;
}
/*
MOD BAN
END INSERT
*/
//--- DB Field Dropdown ---
function get_db_fields_dropdown($key, $val, $value) {
$dropdown = "<SELECT name=\"".$key."\" onkeypress=\"if(window.event.keyCode==13)this.form.submit();\" class=\"select\">";
$i = 0;
foreach ($val[3] as $item) {
$what = ($val[4]) ? $item : $i;
$dropdown .= "<option value=\"".$what."\"".(($value == $what) ? " selected" : "").">".$item."</option>\n";
$i++;
}
$dropdown .= "</select>\n";
return $dropdown;
}
//--- End DB Field Dropdown ---
?>
This ist the line 1317 and 1318 of my functions.php:
function get_db_fields_dropdown($key, $val, $value) {
return get_dropdown_options($key, $val[3], $value, $val[4], $val[5], $val[7], 1, "", "select", $val[6]);
And this is the line 1437 of my functions.php (the new mod):
function get_db_fields_dropdown($key, $val, $value) {
I have step to step this mod, but i have this error!!!
German:
Ich habe alles genau so installiert wie beschrieben, doch habe ich nun diese Fehlermeldung (siehe oben)
Wie meine functions.php aussieht, eht ihr ja ebenfalls oben. Genauso wie hier beschrieben.
Was ist der Fehler???