i am passing images file names via textarea to php script to find information about each image in mysql db .The problem is i am trying to output those image file names that
You want to use mysqli_num_rows
if(mysqli_num_rows($result)) { // Do your while loop here }