Thank you very much. But what do you think of:
select foobar from table where <condition>;if (pgsql_num_rows($result) > 15) show_pages;show_only_15($result);
Thank you!