Re: Re: Count()
| From: | ERISEN, Mehmet Kamil | Date: | Wed, 29 Aug 2001 18:54:20 +0000 |
| Subject: | Re: Re: Count() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-65083@lists.php.net to get a copy of this message | ||
$sql = "SELECT COUNT(*) AS myCount FROM Products";
$result = mysql_query($sql);
$count = mysql_result($result,0);
--- Kevin P <kevin.pottie@odellwebdesign.com> wrote:
> I have counted some rows in MySQL and I need to know how
> to pull out the
> number of rows.
> "SELECT COUNT(*) AS myCount FROM Products"
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail:
> php-general-unsubscribe@lists.php.net
> For additional commands, e-mail:
> php-general-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>
=====
Mehmet Erisen
http://www.erisen.com
__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com