I’ve made the following sql query
$dates = mysql_query("SELECT DISTINCT `saledate` FROM `phoneappdetail`");
Now I want to echo results in the array like so.
$dates[0]
I don’t want to use a while statement so I can use $date[1], $date[2], ect. in different places on the page.
You still have to use a while loop in order to traverse the result because mysql_query returns a resource and not an array.