RE: [PHP-DB] Select Count(*) into variable
| From: | Matt Williams | Date: | Mon, 21 Aug 2000 14:45:20 +0000 |
| Subject: | RE: [PHP-DB] Select Count(*) into variable | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-2220@lists.php.net to get a copy of this message | ||
Hi Nick
SELECT count(*) as total
M@
> -----Original Message-----
> From: Nick Boyle [mailto:nick@local-serve.com]
> Sent: Monday, August 21, 2000 03:26
> To: php-db@lists.php.net
> Subject: [PHP-DB] Select Count(*) into variable
>
>
> select count(*), name, town, county from tablename group by
> telephone, town
>
> If I wish to do a select (like above), and then process depending
> on number
> of results, how can I put the count(*) into a variable??
>
> Many thanks in advance
>
> Nick
>
>
> --
> 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
>