operandi
10-01-2002, 03:01 PM
Hi
Is there a way of inserting rows into MySQL from a PHP array. I know that I can do this:
foreach ( $array as $val )
{
run an insert query for $val
}
however that creates many queries. Is there are smarter way ie performing only one insert query for all values of the array?
Thanks, in advance
Is there a way of inserting rows into MySQL from a PHP array. I know that I can do this:
foreach ( $array as $val )
{
run an insert query for $val
}
however that creates many queries. Is there are smarter way ie performing only one insert query for all values of the array?
Thanks, in advance