query("SELECT * FROM doctor_master LIMIT 5"); while ($row = $res->fetch_assoc()) { print_r($row); }