Re: counting records in db

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



WOW! That was fast!
:D

Thanks Dave!

-afan


> $query = mysql_query("
>                SELECT COUNT(*) as NoOfRecords
>                FROM customers
>                WHERE last_name = 'Smith'");
> $result = mysql_result($query, 0);
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux