I have tried that and i get the following error
Warning: Invalid argument supplied for foreach()
The error line it applies to is the second "foreach"
If a table has
ID Name Surname
1 Peter Smith
2 John Mark
And these details are retrieved and put in an array, how would i get the "foreach" loop to loop through each record row and allow me to specify where to place the returned value?
e.g.
Loop through and display
{
$row['ID'] $row['Name'] $row['Surname']
}