DB.php, if and else on query?
| From: | Louie Miranda | Date: | Mon, 09 Aug 2004 04:51:49 +0000 |
| Subject: | DB.php, if and else on query? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-14011@lists.php.net to get a copy of this message | ||
Hi, is it possible to do if and else on DB.php? I have tried adding this on..
$q = $db->query($sql);
if (DB::iserror($q)) {
die($q->getMessage());
} elseif ($q == 0}
die("zero value, found nothing..");
}
how can i make this work?
--
Louie Miranda
http://www.axishift.com