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 can use mysqli_num_rows() in mysqli
if(mysqli_num_rows($result) > 0){
while($row = mysqli_fetch_array($result))
{
$totalRows++;
echo "";
echo "" . $row['ID'] ."(".$totalRows. ") ";
echo "" . $row['name'] . " ";
echo "" . $row['imgPURL'] . " ";
echo "" . $row['imgUrl'] . " ";
echo " ";
}
} else {
echo "Not Found Image:".$line.' ';
}