in reply to MySQL Error
if (defined $status) { $statement = qq(SELECT COUNT(*) FROM name WHERE status = $status); }else{ $statement = qq(SELECT COUNT(*) FROM name WHERE age = "4"); }
$sth = $dbh->prepare($statement); $sth-> execute();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: MySQL Error
by Caillte (Friar) on Nov 20, 2001 at 21:29 UTC |