I am stuck with a Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\risman\admin\edit.php on line 53 in a system I am building and don't have the slightest clue. It must have something to do with the fact that I newbie at coding.
It reads as follows on line 5 :
if($_POST['rowid']) {
$id = $_POST['rowid'];
$sql = "SELECT * FROM user WHERE id = $id";
$result = $koneksi->query($sql);
foreach ($result as $baris) { ?>
Thanks to all the wise guys around here