note 87931 rejected from function.pg-query by danbrown

From: Date: Wed, 31 Dec 2008 18:57:01 +0000
Subject: note 87931 rejected from function.pg-query by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-148727@lists.php.net to get a copy of this message
Note Submitter: glenn at sustainabledesign dot co dot nz ---- How do I do this with more than one WHERE condition? e.g. <?php $db = pg_connect('dbname=foo'); $rec = pg_query($db, 'SELECT field_value FROM field WHERE value=1 AND value=2'); if ($rec) { echo "Records selected\n"; var_dump($rec); } else { echo "User must have sent wrong inputs\n"; } ?>

« previous php.notes (#148727) next »