I have a php loop that executes a mySQL query for each cycle of the loop. Right now my loop is hitting a mySql error and stopping. How do I set it up so when it hits a mySql error it just stops what it's doing and moves on to the next loop?
I have added the code below. Please keep in mind I am not trying to solve the SQL error but rather tell the php loop to skip over it.
foreach ($queryData as $value) {
mysql_query(" PREPARE stmt FROM 'INSERT INTO `table_name`( `column_name`) VALUES ('value' )'EXECUTE stmt1"
)or die("die message");
}