-Original Message-
From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk]
Sent: Friday, July 02, 2010 2:43 PM
To: b...@tottd.com
Cc: php-general@lists.php.net
Subject: Re: [PHP] SELECT AVG(rating)
On Fri, 2010-07-02 at 14:32 -0600, Ben Miller wrote:
> Hi - I have a MySQL table f
On Fri, 2010-07-02 at 14:32 -0600, Ben Miller wrote:
> Hi - I have a MySQL table full of product reviews and I'm trying to select
> info for only the top 5 rated products. The only way I can figure out how
> to do it so far is something like:
>
> $query1 = mysql_query("SELECT * FROM products");
Hi - I have a MySQL table full of product reviews and I'm trying to select
info for only the top 5 rated products. The only way I can figure out how
to do it so far is something like:
$query1 = mysql_query("SELECT * FROM products");
for($i=1;$i<=mysql_num_rows($query1);$i++) {
$row1 = mys
3 matches
Mail list logo