Ormy $i = 0; while ($sth->fetchrow_hashref){$i++; ##..do other stuff.. } do_your_no_row_stuff($vars) unless $i;
do_no_row_stuff() unless $sth->fetchrow_hashref; ## Of course, the first row is now useless.. but..
In reply to Re: if (empty record set)
by one4k4
in thread if (empty record set)
by chuleto1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |