I want get the results of mysql_fetch_assoc as an array then echo a specific value in that array. How do I do that? I tried
$d = array();
while($row_dates = mysql_fetch_array($date_result)){
$d[] = $row_dates;
}
echo $d[1];// this would be the result from the first row
echo $d[3];// this should be the result from the second row.
I’m just getting Array as a result.
use the below code
you just miss the
column_namein your code, everything else in your code is fine.