Así quedaría el código, pruébalo y nos dices:
Código PHP:
Ver original<html>
<head>
</head>
<body>
<?php
include('conex.php');
$link=Conectarse();
$defecto='00000005Z';
for($paso=0;$paso<=$total;$paso++){
$mirex=$_GET['check'];
if($mirex.checked == true){
mysql_query("INSERT INTO entidad-categoria (categoria, entidad) VALUES ('$mirex', '$defecto')",$link) or
die (mysql_error()); }
}
header('Location: muestracategoria.php'); ?>
</body>
</html>