DATE ads visible
2014-06-23 3 1
2014-06-13 1 1
2014-06-12 4 1
2014-06-10 1 1
2014-06-09 7 1
2014-06-08 12 0
2014-06-07 12 1
i have these three colums selected in mysql
through php i want to display the result like above on front end how can loop through all these columns after this check
if (!empty($adsList['ads']) and $adsList['visible']==1)
// display data here