if ($result_array) { print "something\n"; } else { print "nothing\n"; }
Also, the DBI POD mentions checking $sth->err
In reply to Re: no rows returned for dbi fetchall_arrayref
by toolic
in thread no rows returned for dbi fetchall_arrayref
by essej1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |