Code: Select all
$result="SELECT name from players where hitpoints=10 AND gold =100 UNION ALL
SELECT name from creatures where hitpoints=10 AND gold =100 UNION ALL
SELECT name from pets where hitpoints=10 AND gold =100 UNION ALL
$result2=mysql_query($result) or die("Could not get result");
while($result3=mysql_fetch_array($result2))
{
echo $result3['name'] . "<br>";
}
