Postingan lainnya
Notice: a non well formed numeric value encountered in
foreach($db->query('SELECT count(id1) FROM no_antrian') as $total1) { echo ""; echo "" . $a=$total1['count(id1)'] . ""; echo ""; } ?> query('SELECT count(id) FROM data_antrian') as $total) { echo ""; echo "" . $b=$total['count(id)'] . ""; echo ""; } ?>
bagaimana code yang benar supaya tidak muncul : Notice: A non well formed numeric value encountered in
thanks
0
1 Jawaban:
select count(id) as total from data_antrian
nanti di foreach / whilenya $data['total'] atau $data->total
0