Inserting many rows
Posted: Fri Oct 19, 2007 12:18 pm
I am inserting some data into a database table. It contains 4 fields. The insertion is done by using a loop. If the data to be inserted is 100-150 rows, will the server hang?
example//
example//
Code: Select all
foreach($datas as $data_key=>$data_value)
{
mysql_query("INSERT INTO table SET data_key='$data_key', data_value='$data_value'");
}