Re: AW: [PHP-DB] how to get an array into a mysql-db-table

2001-12-11 Thread Russ Michell
gt; Paul-Lincke-Ufer 42-43 > 10999 Berlin > 030 / 695350-0 > > > -Ursprungliche Nachricht- > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von Russ > Michell > Gesendet: Dienstag, 11. Dezember 2001 15:37 > An: es said > Cc: [EMAIL PROTECTED] >

Re: [PHP-DB] how to get an array into a mysql-db-table

2001-12-11 Thread Russ Michell
the foreach() structure is a loop and you can't use it to assign to a variable. Please do read the manual as it really does help you if you re stuck! http://uk.php.net/manual/en/control-structures.foreach.php What you need to do is arrange the query around the loop itelse, so that the variables

[PHP-DB] how to get an array into a mysql-db-table

2001-12-11 Thread es said
hello again, russ gave me a wonderful tip, but now i'm standing in front of the next problem: if i try to insert these values out of the array into the table of the db, i probably don't know the correct way. this is how i tried it: /* this works fine! */ foreach($werbeform as $key=>$val) { echo "$