A
Anonymous
Guest
I'm making a school survey, and my design is very complex. I take in values and hidden values and make two multidimensional arrays. and take any of four actions: add question, delete question, add answer, delete answer. I have a hidden value that in one line of numbers and signs. I send it through loop it makes a multidimensional array which is the guild line for how many questions and how many answers per question. No problem. The problem I'm having is that when I building the array (after one of the actions is completed) back into a string for a hidden value. (Impolding a multidimensional array into a string) It is giving me an error:
Warning: Invalid argument supplied for foreach() in /survey/create.php on line 75
Here is my code I been tring to get to work:
As you can see I'm tring to see my results when it's done, but I keep geting this error when my loop is correct!
help
If I can't even get my loop to work I can't finish debuging my impolde functions. Can anyone help me will these probelms!
Warning: Invalid argument supplied for foreach() in /survey/create.php on line 75
Here is my code I been tring to get to work:
Code:
foreach ($numa_list as $numa_item) {
$numa_list['.'] = implode("--", $numa_item);
}
$answers = implode("---", $numa_list);
echo $answers;