Evaluating T/F.
| From: | Julio Cuz, Jr. | Date: | Wed, 14 Mar 2001 18:36:24 +0000 |
| Subject: | Evaluating T/F. | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-7464@lists.php.net to get a copy of this message | ||
Hi--
I'm trying to evaluate the following lines to see if "$myrow" is false or true, can you help?
-----------------------------------------------------------------
$sql = "SELECT * FROM Employees WHERE ID=$id";
$result = pg_exec($db, $sql) or die(include("../sqlerror.inc"));
$myrow = pg_fetch_array($result,0) or die(include("../sqlerror.inc"));
-----------------------------------------------------------------
Julio Cuz, Jr.
Riverside Community College
jcuz@rccd.cc.ca.us