how to check if mysql query return no result(record not found) using php?

前端 未结 3 559
鱼传尺愫
鱼传尺愫 2020-12-17 06:13

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

3条回答
  •  不知归路
    2020-12-17 06:32

    You want to use mysqli_num_rows

    if(mysqli_num_rows($result)) {
       // Do your while loop here
    }
    

提交回复
热议问题