I'm working on an app (using PHP4.0.1) that lets teachers submit grades via an HTML form. They select grades on six criteria each week for six weeks (a 6x6 grid, essentially). The HTML form uses popups for the input, so there's no trouble with bogus input. The range for each score is 0-5. I've stored scores in each course in a separate indexed array (e.g. $class1_data).
In order to move it around, I've serialized the array and then stored it in a MySQL database. I know the serializing works because I can echo it out (both before I put it in the db and after I've pulled it out). The serialized data (for just two entries on one row of the grid) looks like this:
a:6:{s:4:"1PA1";s:1:"1";s:4:"1PA2";s1:"1"; [etc] ;}
Where I've put "etc" it just continues in like fasion. This data is accurate. The index values are 1PA1 through 1PA6. And the values (here, 1 and 1) are the ones that were submitted via the form and stored.
The problem is, how do I get it back out on the other side--how do I create a new array, unserialize this data, and stick it in that array so that the key/value pairs are the same when I pull the data out as they were when I put it in? I've tried lots of things and have had no luck.
Any help will be appreciated...
wheat