I have an array with 30000 plus entries that need to go into a MySQL table.
What is the best practice? From here? Lets say [0], [1] and [2] in the database would be
$statement = "INSERT INTO table (title, type, customer) VALUES "; foreach( $data as $row) { $statement .= ' ("' . implode($row, '","') . '")'; }
UPDATE: Changed explode to implode (I always get those confused).