Re: Retrieving result of COUNT(*) with PHP

Поиск
Список
Период
Сортировка
От Alan Hodgson
Тема Re: Retrieving result of COUNT(*) with PHP
Дата
Msg-id 200703281443.05137@hal.medialogik.com
обсуждение исходный текст
Ответ на Re: Retrieving result of COUNT(*) with PHP  ("Valentín Orfila" <valentinorfila@gmail.com>)
Список pgsql-php
On Wednesday 28 March 2007 14:31, "Valentín Orfila"
<valentinorfila@gmail.com> wrote:
> Where people this the way I do, count (*) could be slower
>
> <?
> $sql = "select * from TableName";
> $count = pg_query($sql);
> $count = pg_num_rows($count);
> ?>
> <td ><?=$count?></td>
>
> I thing that's enough :)

Apparently you have no tables with any real amount of data in them.

--
"It is a besetting vice of democracies to substitute public opinion for
law." - James Fenimore Cooper


В списке pgsql-php по дате отправления:

Предыдущее
От: "Gavin M. Roy"
Дата:
Сообщение: Re: Retrieving result of COUNT(*) with PHP
Следующее
От: Lynna Landstreet
Дата:
Сообщение: Re: Retrieving result of COUNT(*) with PHP