I need to get the string data from $sid and $nam to save into a file. The coding echo's the values at the moment and also I have attempted to save the data into a file. For some reason the echo $sid','$nam','; data does what I want from the coding but when I try to save the values that have been echoed it only seems to save one entry from each string and not them all.
It currently echoes the data like this;
sid, nam, sid, nam, sid, nam, sid, nam,
This is what I need to be saved into a file so the rest of my system can then call the saved file and explode the data for future use within a select form.
Here is my coding so far, and you can see at the bottom my attempts to save this data:
Code: Select all
Cheers for any help,
Jason.