Multiple sql query results

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
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 ('');
echo ('$result');

any help or direction would be greatly appreciated. Thanks so much


Re: Multiple sql query results

Mikey P wrote:
Quoted text here. Click to load it


Re: Multiple sql query results

hi all, i finally figured it out... :)

if (($numrows == 0) and ($numrows2 == 0)) {  
} else {

Site Timeline