note 45887 deleted from function.pg-num-rows by tomsommer
| From: | tomsommer@php.net | Date: | Wed, 22 Sep 2004 19:30:50 +0000 |
| Subject: | note 45887 deleted from function.pg-num-rows by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-77190@lists.php.net to get a copy of this message | ||
Note Submitter: alspanhol at ibest dot com dot br
----
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";