Postingan lainnya
Invalid argument supplied for foreach()
Ini Kode Saya
<?php
foreach ($resultJson as $key => $data) {
if(@$data->email){
print '<div class="custom-control custom-radio mb-3">
<input name="choice" value="1" class="custom-control-input" id="customRadio5" type="radio" checked="">
<label class="custom-control-label" for="customRadio5">'.@$data->email.'</label>
</div>';
}else if(@$data->phone_number){
print '<div class="custom-control custom-radio mb-3">
<input name="choice" value="0" class="custom-control-input" id="customRadio6" type="radio">
<label class="custom-control-label" for="customRadio6">'.@$data->phone_number.'</label>
</div>';
}
}
?>
1 Jawaban:
<div>coba tulis yang mau di tampilkan apa ya??? soalnya itu variablenya cuma variable support doang isinya... nulisnya juga masih salah2 phpnya mba</div>