PHP Code:
$htmlconstruct = '<div class="form-group">
<label for="'.$input_name.'">'.$desc.':</label>
<select name="'.$input_name.'" class="form-control" id="'.$input_name.'">
<option value="0"></option>';
$sql = 'SELECT * FROM category ORDER by id DESC';
$statement = $this->pdo->prepare($sql);
$statement->execute();
$count = $statement->rowCount();
if($count > 0){
while($row = $statement->fetch()){
switch($row['mode']){
case 1:
$mode = "OnRoad";
break;
case 2:
$mode = "OffRoad";
break;
case 3:
$mode = "Rebuild";
break;
default:
$mode = "Fehler";
}
echo $row['name'];
$htmlconstruct .= '<option value="'.$row['id'].'>'.$mode.' - '.$row['name'].'</option>';
}
$htmlconstruct .= '</select></div>';
}
else{
$htmlconstruct .= '</select></div>';
}
return $htmlconstruct;
}
Im Formular, in der Auswahl werden mir aber nur 10 bzw. mit dem Leerfeld 11 angezeigt.
Woran kann das liegen?

Danke im vorraus






