i have a problem with free_result
here is a part of my code when "$el" is set the free_result returns an error, who knows why?
require_once('../Connections/noticias.php');
mysql_select_db($database_noticias, $noticias);
if (isset ($HTTP_GET_VARS['el'])) {
$idn = $HTTP_GET_VARS['idn'];
$query_apagarnoticia = "DELETE FROM noticias WHERE id = '$idn'";
$apagarnoticia = mysql_query($query_apagarnoticia, $noticias) or die(mysql_error());
if (!$apagarnoticia){
$resultado = "Noticia nao eliminada";
} else {
$resultado = "Noticia eliminada"; }
}
$query_titulos = "SELECT noticias.titulo, noticias.id FROM noticias";
$titulos = mysql_query($query_titulos, $noticias) or die(mysql_error());
$row_titulos = mysql_fetch_assoc($titulos);
$totalRows_titulos = mysql_num_rows($titulos);
mysql_free_result($titulos);
if(isset($HTTP_GET_VARS['el'])) {
mysql_free_result($apagarnoticia);
}