foreach($sqls as $sql) {
$result = mysql_query($sql) OR die(mysql_error());
}
$sqls should be an array, foreach is running trough this array and $sql is the array element, which will be worked on in {statement;}.
It's just a loop, the logic takes the first element, then the second and so on...
In this special case you should have a group of sql-statements in your array. If one statement generates an error, then the error will be printed and the program (and the loop of course) stops.
If the sql-statements will execute properly no message will be printed.