in reply to MySQL/DBI: Error if entry is not in the database
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>"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: MySQL/DBI: Error if entry is not in the database
by Anonymous Monk on Feb 06, 2003 at 12:36 UTC |