How to list rows for a query or display 'no records' using a single query

前端 未结 3 1432
一个人的身影
一个人的身影 2021-01-26 10:45

How to list records for a query and to display \"no records\" when no rows returned using a single query?

Currently I am using a COUNT(*) query or using

3条回答
  •  孤独总比滥情好
    2021-01-26 11:15

    why do you need another query after mysql_num_rows?
    why not to just run your query and then check results with mysql_num_rows?

提交回复
热议问题