note 66055 added to function.pg-query

From: Date: Sat, 13 May 2006 14:21:41 +0000
Subject: note 66055 added to function.pg-query
Groups: php.notes 
Request: Send a blank email to php-notes+get-111217@lists.php.net to get a copy of this message
There was a typo in the code that I posted: <?php $result=pg_query($conn, "SELECT * FROM x WHERE a=b;"); if (!$result) { echo "query did not execute"; } if (pg_num_rows($result) == 0) { echo "0 records" } else { while ($row = pg_fetch_array($result)) { //do stuff with $row } } ?> ---- Server IP: 64.71.164.2 Probable Submitter: 68.34.115.109 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.pg-query.php Edit -- http://master.php.net/note/edit/66055 Del: integrated -- http://master.php.net/note/delete/66055/integrated Del: useless -- http://master.php.net/note/delete/66055/useless Del: bad code -- http://master.php.net/note/delete/66055/bad+code Del: spam -- http://master.php.net/note/delete/66055/spam Del: non-english -- http://master.php.net/note/delete/66055/non-english Del: in docs -- http://master.php.net/note/delete/66055/in+docs Del: other reasons-- http://master.php.net/note/delete/66055 Reject -- http://master.php.net/note/reject/66055 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#111217) next »