|
|
|
ถามวิธีแปลงข้อมูลจาก string เป็น arrray ใส่ select multipleหน่อยครับ |
|
|
|
|
|
|
|
Code (PHP)
//...
<?php
while($rws = sqlsrv_fetch_array($dbquery1)){
$myArray = explode(',', $rws["param2"]);
print_r($myArray);
?>
<select multiple class="form-control s-multiple" style="width: 450px; height: 350px; " id="PresenterList" name="txtparam2[]">
<?php
foreach ($myArray as $v) {
?><option value="<?=$v?>"><?=$v?></option><?php
}
}?>
</select>
|
|
|
|
|
Date :
2020-05-16 23:33:59 |
By :
PhrayaDev |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 05
|