$sql = "SELECT COUNT(*) AS myCount FROM Products";
$result = mysql_query($sql);
$count = mysql_result($result,0);

--- Kevin P <[EMAIL PROTECTED]> 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:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
> 


=====
Mehmet Erisen
http://www.erisen.com

__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com

-- 
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]

Reply via email to