Re: PHP+ postgresql help?
| From: | Ted Rolle | Date: | Tue, 21 Aug 2001 03:21:57 +0000 |
| Subject: | Re: PHP+ postgresql help? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-11581@lists.php.net to get a copy of this message | ||
print_r? Am I about to learn something new? Be still, my beating heart!
On Tue, 21 Aug 2001, speedboy wrote:
> > $conn = pg_connect ("host=localhost user=username password=password
> > bname=dbname");
> >
> > $sql = "SELECT * FROM database where lower('$name%') order by last;";
> >
> $result = pg_exec($conn, $sql);
>
> for ($i = 0; $i < pg_numrows($result); $i++) {
> $row = pg_fetch_array($result, $i);
> echo "<pre>";
> print_r($row);
> echo "</pre>";
> }
>
>
> --
> 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
>