Closed nahrunhartono closed 2 years ago
Check out this error code:
foreach ($query as $query) {
echo "<option value=''>Pilih Provinsi - - </option>";
}
`<?php
echo "";
$query=$database->select('wk_provinsi','*'); foreach ($query as $query) { // echo ""; echo "<option value='" . $query['id_provinsi'] . "'>" . $query['provinsi'] . ""; }
?> `
Not work bro
foreach ($query as $query)
Cannot write like this.
Please read the PHP documentaion on how to write the correct foreach
expression.
https://www.php.net/manual/en/control-structures.foreach.php
Ajax :
Select Form :
get_provinsi.php (location file: template/module/objek) :
data does not appear on the select form does medoo not support view data with ajax ??