[SOLVED] array insert
Posted: Tue Aug 31, 2004 8:23 am
tried something stupid like the following
HOwever this doesnt work, well it does but only inserts the first name of the array. How do i make a insert that will insert them all. like below
id name
1 jack
2 jill
3 diddly
Code: Select all
foreach ($nombres_array as $nombres_insert)
$query = 'INSERT INTO opertunidades (mail) VALUES ("'.$nombres_insert.'")' or die (mysql_error());
$result = mysql_query($query);id name
1 jack
2 jill
3 diddly