You can use the 'rows' method to determine if your select returned any rows or not:
unless($sth->rows) { print header,"<H1>No rows selected</H1>"; }
In reply to Re: MySQL/DBI: Error if entry is not in the database
by jasonk
in thread MySQL/DBI: Error if entry is not in the database
by basm101
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |