Thanks for the input; however, the assignment process I use works just fine for me. I have the $position[] array as mentioned before which has successfully been populated with 80+ names.
e.g., $position[1][0] = 1234567 (member id); and $position[1][1] = 1 (position in list)
My problem is when I try to serialize this array and unserialize it, I keep coming up with an empty variable. Why is the serialized variable not being converted back into a multi-dimensional array when I use the unserialize() function?
e.g.:
//the following returns the number 80
$number_of_elements = count($position);
print($number_of_elements);
//convert array to byte-stream
$serial = serialize($position);
//the following prints the byte-stream version of the $position array
print($serial);
//the following SHOULD convert $serial back to the same multi-dimensional array format as $position:
$back_to_array = unserialize($serial);
//but instead, returns a variable with no values:
print($back_to_array);
//the following returns the number 1, instead of the expected 80
$number_of_elements = count($back_to_array);
print($number_of_elements);
Does this make a little bit more sense? Hopefully this will give a better picture of what is happening. Again, the values are being stored just fine with my while() statement, but it is in the conversion to byte-stream data and back to PHP format that things are going haywire... somebody please help me!!!
Thanks guys,
Nate