Re: Evaluting T/F (3)

From: Date: Wed, 14 Mar 2001 21:31:25 +0000
Subject: Re: Evaluting T/F (3)
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-7486@lists.php.net to get a copy of this message
Try if($myrow = pg_fetch_array($result,0)) { do whatever } else { or die(include("../sqlerror.inc")); } and it will work accordingly Ivo ""Julio Cuz, Jr."" <jcuz@rccd.cc.ca.us> wrote in message news:4.3.2.7.2.20010314103716.00b07578@rccd.cc.ca.us... > HI-- Sorry again...arrrrggghhhh... > > Hi-- > > I'm trying to evaluate the following lines to see if "$myrow" is false or > true, can you help? > > ----------------------------------------------------------------- > $db .....; > $sql = "SELECT * FROM Employees WHERE ID=$id"; > $result = pg_exec($db, $sql); > $myrow = pg_fetch_array($result,0) or die(include("../sqlerror.inc")); > ----------------------------------------------------------------- > > Julio Cuz, Jr. > Riverside Community College > jcuz@rccd.cc.ca.us > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.db (#7486) next »