I need to edit some data in MySql using PHP. Due to complications i decided to delete the records with Code IDs of 'XXX', and re-insert the new records by looping the insert query. The code below will picture it.
//the query for delete records
$sql="delete from ppt_test_grind where...