Here is my code on loading the data into the array by using a loop :
and i want to echo the data out in words late but i receive an error “Notice: Array to string conversion in…”
for ($i = 0 ; $i < 4 ; $i++) {
$options[] = $row3= mysqli_fetch_array($result3);
}
echo $options[0];
Its all about:
mysqli_fetch_array($result3) returns an array. So $row3 is an array and $options[] is an array. So when you do print
$options[0]you are printing an array.User
print_r($options[0]);to print the complete array.Also you could use: