View: 3188|Reply: 3
|
PHP -Store Selected Value Ke Dalam Database
[Copy link]
|
|
Salam semua,
Newbie tumpang bertanya, mcm mna nak save selected value ke dalam database ideastatus_id. FYI script ni diambil dari joomla component, harap ada yg boleh membantu:
<select name="ideastatus" name="ideastatus">
<option value="pending">Pending</option>
<option value="review">Review</option>
<option value="complete">Complete</option>
</select>
<option value="<?php echo ($this->feedback->ideastatus_id; ?>"/></option>
Terima Kasih,
|
|
|
|
|
|
|
|
Newbie tumpang bertanya, mcm mna nak save selected value ke dalam database? -PHP |
|
|
|
|
|
|
|
kira nak paparkan dlm page user back-end akan status feedback ke? |
|
|
|
|
|
|
|
Thanks bro yg reply, dah jumpa dia punya solution, tnya org, tp xfham apa pun..hehe
<select id="division" name="division">
<option value="NAT" <?php //echo ($this->feedback->division == NAT) ? 'selected="selected"' : ''; ?>>NAT</option>
<option value="ND" <?php //echo ($this->feedback->division == ND) ? 'selected="selected"' : ''; ?>>ND</option>
<option value="NNO" <?php //echo ($this->feedback->division == NNO) ? 'selected="selected"' : ''; ?>>NNO</option>
</select> |
|
|
|
|
|
|
| |
|