Re: Rows in tables...

From: Dorin Grunberg <dorin(at)visgen(dot)com>
To: herbie(at)nextearth(dot)com, pgsql-php <pgsql-php(at)postgresql(dot)org>
Subject: Re: Rows in tables...
Date: 2001-02-19 22:41:52
Message-ID: 4.2.0.58.20010219163937.00ac95f0@pophost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

Use: pg_NumRows($result)

and

$result = pg_Exec ($conn, $sql);

All the best,
Dorin Grunberg

At 04:40 PM 2/19/2001 -0500, Herb Pabst wrote:
>What is the easiest way to get the total number of
>rows in a table? I want to do a random pick from a
>table and need to know how many rows are in the
>table.
>
>Do I do a "SELECT * FROM table" and use the info
>from this, or will a select return all the data?
>This is where I'm hazy. Or does fetch_row actually
>return the data?
>
>Any help is appreciated,
>Herbie Pabst

In response to

Browse pgsql-php by date

  From Date Subject
Next Message Dan Wilson 2001-02-19 22:50:47 Re: Rows in tables...
Previous Message Mitch Vincent 2001-02-19 21:44:36 Re: Rows in tables...