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