Llevo dos días peleándome con este código y no consigo que funcione... a ver si alguién me dice donde está el problema
Código PHP:
<?
include('conexion.inc.php');
$link = Conectarse();
$ssql="select id_det, deterioro from deterioros";
$var=mysql_query($ssql);
$ssql2="select id_det from imag_det where img='12'";
$var2=mysql_query($ssql2);
$proba=mysql_fetch_assoc($var2);
while($fila=mysql_fetch_assoc($var))
{
if(in_array($fila['id_det'],$proba))
{
echo "marca";
}
else
{
$marcada="";
}
echo"<input type=checkbox name='det[]' ".$marcada." value='".$fila['id_det']."'> ".$fila['deterioro'];
}
?>
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)
Gracias a tod@s.