ich habe hier ein Array für eine Dropdown-Liste.
Wie kann ich erreichen, daß die ID2 als Standard genommen wird ?
hab schon alles mögliche probiert, aber ich bekomme immer nur die id 0 als erstes angezeigt im Frontent bei der Dropdown-Liste (siehe code unten).
Die id 2 soll im Frontend als Standadwert gesetzt sein.
PHP-Code:
<?php
$gm_price_status_selection = array();
$gm_price_status_selection[] = array('id' => 0, 'text' => GM_PRICE_STATUS_0);
$gm_price_status_selection[] = array('id' => 1, 'text' => GM_PRICE_STATUS_1);
$gm_price_status_selection[] = array('id' => 2, 'text' => GM_PRICE_STATUS_2);
?>
<tr>
<td><?php echo GM_PRICE_STATUS; ?></td>
<td><?php echo xtc_draw_pull_down_menu('gm_price_status', gm_price_status_selection, $pInfo->gm_price_status, 'style="width: 130px"'); ?></td>
</tr>