note 45887 added to function.pg-num-rows

From: Date: Wed, 22 Sep 2004 14:16:27 +0000
Subject: note 45887 added to function.pg-num-rows
Groups: php.notes 
Request: Send a blank email to php-notes+get-77157@lists.php.net to get a copy of this message
Its quite simple: $search = "select your_name from users_table"; // search the bd $result = pg_exec($connection,$search); // pg_query(), same thing $nr_of_results = pg_num_rows($result); // the function ^ :) if ($nr_of_results) // if there is some result for query, do the //following command: echo "You are subscripted in our databases, $your_name"; ---- Manual Page -- http://www.php.net/manual/en/function.pg-num-rows.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+45887 Delete -- http://master.php.net/manage/user-notes.php?action=delete+45887&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+45887&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#77157) next »