I have data in one of my fields in the following format 1,2,3,4
I need to create an array in php once I have selected it from MySQL
Once I have this in an array, In then use a foreach loop to perform the next operation.
I have tried the following to create the array, where it inserts the row from the database directly, but this does not work. This is what I have tried below.
$a = array($row['group_numbers']);
I decided to try this manually so I entered it directly and saved .php page, and it worked.
$a = array(1,2,3,4)
So basically what I need advice on is how I pull the data in this format 1,2,3,4 from MySQL and create an array using php.