I have two separate arrays coming from a form on the first page. When I go to the second page I use:
$uniquehash=$_POST['uniquehash'];
$spell_name2=$_POST['spell_name2'];
if(is_array($spell_name2)){
foreach ($spell_name2 as $sValue2) {
print $sValue2;
echo " ";
To get the first array values and the same thing to get the second array values with the variable $knowledge2.
If I put the insert statement into the first foreach it will work properly but wont also insert the $knowledge2 variable obviously. I need to know how to get two arrays to insert into a table on the same row? The table has the primary key, user_id, spell_choice, level_knowledge. The last two being the arrays.
Any help would be appreciated! Thanks!
MM