Hi,
I have a table with a field called groups.
Within this field there are several values that I need to get out one by one not as a whole. The data is stored like so:
id groups
1 g1 g2 g7 g5
2 g4 g9 g7 g1
3 g1 g7 g19 g23
$directory = "SELECT * FROM ecs_buildings WHERE id LIKE '1'";
$directoryResults = mysql_query($directory);
while ($directoryRow = mysql_fetch_array ($directoryResults)){
$areas = $directoryRow["groups"];
echo"Area Type: $areas";
}
The above echoes g1 g2 g7 g5.
How could i echo the results so they look like this:
g1
g2
g7
g5
Hope someone can help Thanks!!!!