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();
In reply to Re: MySQL Error
by thunders
in thread MySQL Error
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |