foreach ($_SESSION['exampleOne'] as $item)
{//insert sql
foreach ($_SESSION['exampleTwo'] as $comment)
{//insert sql
How do I merge 2 foreach together? now my database store like this.. :
comment | item
---------------
Nice! | Pants
Great! | Pants
Awesome!| Pants
Nice! | Skirts
Great! | Skirts
Awesome!| Skirts
Nice! | Shirts
Great! | Shirts
Awesome!| Shirts
I want it somehow to be like this in my database when I store it:
comment | item
---------------
Nice! | Pants
Great! | Skirts
Awesome!| Shirts
$_SESSION['exampleOne']is having comments and$_SESSION['exampleTwo']is having item ?