Ver original$sqlsi=mysql_query("select count(*) as valor from plantas where estado='1' and campoid='$id'",$conexion)or die("ERROR".mysql_error()); $respuesta = mysql_fetch_assoc($sqlsi);echo $respuesta["valor"];