On 27 Apr 2001 19:50:04 -0700, Chris Schneck <[EMAIL PROTECTED]> wrote:
>anywho, im having problems getting data out of the count() function i've
>implemented, could anyone lend a hand?
>
> $query = "select count(fld_gender) from tbl_survey";
>
>how exactly is it that you output data retrieved from a count()
>implementation?
The same way you retrieve data from any other query - SQL functions like
count() or sum() return data in the same fashion as normal, non-computed data.
As an example:
$foo = mysql_query("select count(*) from table");
echo "Number of records in table: " . mysql_result($foo, 0);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]