1
demo table
id imagem flash codigo
1 fda.jpg
2 asdfasd.sfw
3 adsense
is there any way to SELECT only the non-empty? if yes 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 around or has some way more proper?
Empty values are empty strings or
NULL
?– bfavaretto
Are Empty Strings
– Arsom Nolasco