demo table
id imagem flash codigo
1 fda.jpg
2 asdfasd.sfw
3 adsense
is there any way to SELECT only non-empty? if so what is the best way in PHP or SQL?
$sql = "SELECT * FROM publicidade ORDER BY RAND() LIMIT 6";
if flash,image = "" echo codgio
if codigo,image = "" echo flash
Is it around or does it have some more appropriate method?