Okay, I understand why the first query wouldn't work. It doesn't recognize the pending bit. 🙂
The second one "works", but my totals don't show up correctly anymore.
$q=" SELECT COUNT(Fauna.animalid) as totalanimals, COUNT(Flora.plantid) as totalplants FROM Fauna, Flora WHERE Fauna.pending != 'yes' and Flora.pending != 'yes'";
$result= mysql_query($q, $connection) or die
("Could not execute query : $q." . mysql_error());
while ($row=mysql_fetch_array($result))
{
$totalanimals=$row["totalanimals"];
$totalplants=$row["totalplants"];
echo "<center>[ Fauna: <b>$totalanimals</b> | Flora: <b>$totalplants</b> ]<br>";
}
$sum = ($totalanimals + $totalplants);
echo "[ Grand Total: <b>$sum</b> ]</center>";
And it prints out: [ Fauna: 4 | Flora: 4 ]
[ Grand Total: 8 ]
When it should be: [ Fauna: 4 | Flora: 1 ]
[ Grand Total: 5 ]
So somehow it's saying that both $totalanimals and $totalplants is equal to the value of $totalanimals. Thanks for the help though. I just need to figure out how to define each individual value now.