Buenas tengo esta consulta que al ejecutarla directamente en MYSQL me hace bien la pesquisa:
SELECT votos FROM album_1 UNION ALL SELECT votos FROM album_2 ORDER BY votos DESC LIMIT 3
pero en el php no me muestra nada
Código PHP:
Ver original$resultado=mysql_query("SELECT votos FROM album_1 sintaxis UNION ALL SELECT votos FROM album_2 ORDER BY votos DESC LIMIT 3"); $portada = $array[portada];
echo "<img src='$portada'/>";
echo "<br/>";
Alguien podria decirme que hago mal? Es un error en el PHP... no?