Posted by Kimmo Laine on 06/09/06 11:15
"deko" <deko@nospam.com> wrote in message
news:N6mdnaqdQcifyhTZnZ2dnUVZ_t2dnZ2d@comcast.com...
> Can I get a count of matching rows from this:
>
> $result = mysql_query($sql);
>
> I need to know how many rows before I loop.
$howManyRows = mysql_num_rows($result);
http://php.net/manual/en/function.mysql-num-rows.php
--
"ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" -lpk
spam@outolempi.net | Gedoon-S @ IRCnet | rot13(xvzzb@bhgbyrzcv.arg)
[Back to original message]
|