Posted by David Haynes on 02/23/06 17:35
Mikey P wrote:
> Hi all, I'm trying to do a query from 2 databases. Basically i have
> catagories within 2 databases. If both catagories return 0 rows then it
> does nothing but if one or both have rows returned then i need it to
> echo a result. I guess where i'm wondering if there's an OR statement i
> can use or something to that effect...
>
> something like
>
> if($numrows == 0 OR $numrows2 == 0) {
> echo ('');
> }else{
> echo ('$result');
>
> any help or direction would be greatly appreciated. Thanks so much
>
> Mike
>
http://www.php.net/manual/en/function.mysqli-num-rows.php
-david-
[Back to original message]
|