bootstrap multiple select update records
I m using following js: https://silviomoreto.github.io/bootstrap-select/methods/
Following is my code:
<select class="selectpicker" name="pendingdocs" multiple>
<?php
do {
?>
<option value="<?php echo $row_PendingDocTypes['DocumentTypeID']?>"<?php if (!(strcmp($row_PendingDocTypes['DocumentTypeID'], $row_ApplicationDetails['AppDocPending']))) {echo "selected=\"selected\"";} ?>><?php echo $row_PendingDocTypes['DocumentTypeName']?></option>
<?php
} while ($row_PendingDocTypes = mysql_fetch_assoc($PendingDocTypes));
$rows = mysql_num_rows($PendingDocTypes);
if($rows > 0) {
mysql_data_seek($PendingDocTypes, 0);
$row_PendingDocTypes = mysql_fetch_assoc($PendingDocTypes);
}
?>
</select>
I added single update record behaviour for the same. So this is a multi select dropdown option.
When i select multiple options & click update only 1 gets updated & multiple ain't getting updated.
If i select multiple options as: one, two, three; i want it to store as one, two, three
file also attached.