Jump to content

masterchiller

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

masterchiller's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thank you !! This really worked for me! =) I was looking for a while loop or something, but this is a much easier and better solution ;).
  2. I'm using the following code; [code] <?php foreach ($_SESSION['ordered_articles'] AS $array) { $articlenumber = $array['artnumber']; $articleamount = $array['amount']; } $mysql_query = "INSERT INTO `orders` values ('NULL', '$articlenumber', '$articleamount')"; $result = mysql_query($mysql_query); ?> [/code] This code puts the array in the database. But when I have more than one article in my array, it just ads one article in the database, instead of them all. What am I doing wrong here ?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.