# Display echo if there are no rows on page

**URL:** https://forum.kirupa.com/t/display-echo-if-there-are-no-rows-on-page/236770
**Category:** programming
**Created:** [August 23, 2007, 3:16pm UTC](https://forum.kirupa.com/t/display-echo-if-there-are-no-rows-on-page/236770 "2007-08-23T15:16:53Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Robot\_Monkey](https://avatars.discourse-cdn.com/v4/letter/r/90ced4/32.png) [@Robot\_Monkey](https://forum.kirupa.com/u/Robot_Monkey)
#### Post date: [August 23, 2007, 3:16pm UTC](https://forum.kirupa.com/t/display-echo-if-there-are-no-rows-on-page/236770/1 "2007-08-23T15:16:53Z")

</div>

Hi, I am making a virtual shop where you can buy items in an RPG, and I was wondering how you can display an if statement with a message saying that all items are sold out if there are no more rows for items left in on the page. Thanks!
