Forum Moderators: coopster
such as inserting
INSERT INTO table SET
name='John',
favcolor= 'blue';
INSERT INTO table SET
name='Windy',
favcolor= 'purple';
INSERT INTO table SET
name='Michael',
favcolor= 'yellow';
INSERT INTO table SET
name='Peter',
favcolor= 'green';
INSERT INTO table SET
name='Cpt. Hook',
favcolor= 'red';
only do all of these as one call to the DB?
sarah
The only danger is hitting the maximum packet size allowed between PHP and the MySQL server (although it's probably big enough not to be a worry - 16MB or something). That said, it's probably not a good idea to go reading in a massive text file and building 1 SQL query from it!