$result=mysql_query($cons);
$result = mysql_query($cons) or die("error en consulta <b>$cons</b> :".mysql_error());