in reply to Re: fetchrow_array DBI
in thread fetchrow_array DBI

Yes I've seen a few $dbh->do(); statements in the Deitel book. Is that wrong or dangerous?

do() isn't at all dangerous, but it is reserved for SQL statements that don't return data.

$dbh->do("DELETE FROM foo WHERE bar = 47");
is O.K., but
$dbh->do("SELECT bar FROM foo");
isn't. This is spelled out in the on-line DBI documentation.