my $query_handle = $dbh->prepare('SELECT name FROM patient_data WHERE name = ?') or die "Couldn't prepare statement: " . $dbh->errstr;
if ($query_handle->rows == 0) { #DO Something }
What am I doing wrong??? - I am assuming that if the query does not find a name $query_handle->rows would equal 0? I get -1. Thanks in advance.
In reply to Sqlite DBI $sth->rows by The_Jesus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |