query($sql); if ($inDB->num_rows($result)){ while ($item=$inDB->fetch_assoc($result)){ } } return true; } ?>