0) { while($row = mysqli_fetch_array($result)) { $output .= " "; } echo $output; } else { echo 'Data Not Found'; } ?>