RE: [PHP] mysql

From: Date: Thu, 31 Jan 2002 09:15:49 +0000
Subject: RE: [PHP] mysql
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-82894@lists.php.net to get a copy of this message
If I understood you correct, you want to know the amount of the rows in your table. Here you go (Assuming ID is the field you use to ident your rows): "...count(ID) AS CountValue..." then treat CountValue as any field in a table. Niklas -----Original Message----- From: Mason Batley [mailto:mason@section31.com.au] Sent: 31. tammikuuta 2002 8:31 To: php-general@lists.php.net Subject: [PHP] mysql bleh, its not working I'll take another approach, If I use a count(*) query, it will return 1 record with a value, possibly 0. what command can I use to grab it from $result ?

« previous php.general (#82894) next »