Hi, I am writing a script to enter product descriptions into a database. The code used to do this is as follows:
PHP Code:
while(list($key, $val) = each($descriptions)) {
$description = explode("," , "$descriptions[$key]");
$description[1] = htmlspecialchars("$description[1]",ENT_QUOTES);
$sql = "UPDATE products SET " .
"Description='$description[1]' " .
"WHERE ProductID='$description[0]'";
$query = mysql_query($sql) or die(mysql_error());
}
The trouble is, i get an error: "Fatal error: Maximum execution time of 30 seconds exceeded in..."
Is there a way I can adjust my code to get rid of this error?
My only idea is to split the descriptions.txt file into multiple files and enter each file into the database separately and I don't think the max execution time can be changed.
Thank you,
Matthew Ruten