I have database that stores array of filenames, for example:
ID FileNames
1 file1, file2, file3, file4
2 file1, file2, file4, file7, file9, file10
I have JS that I would like to use, but will depend on the files stored in the db. So, I would like to query and print out the the array and the corresponding filename, like so:
files[0] = file1
files[1] = file2
files[2] = file3
files[3] = file4
I can write the query fine, and tried to use foreach code, to print this out, but that did not work at all.
Can someone show me how to do this?