//error_reporting(2047); //ini_set("display_errors",1); include "inc/config.php" ?> include $conn_url ?> include $conn_fn ?> include $inc."eqf-cookies-ini.php" ?> //include $queries."masters-destacados.php" ?> include $inc."text-resumen.php" ; ?> function quitar_tildes($cadena) { $no_permitidas= array ("á","é","í","ó","ú","Á","É","Í","Ó","Ú","ñ","À","Ã","Ì","Ò","Ù","Ù","à ","è","ì","ò","ù","ç","Ç","â","ê","î","ô","û","Â","Ê","ÃŽ","Ô","Û","ü","ö","Ö","ï","ä","«","Ò","Ã","Ä","Ë"); $permitidas= array ("a","e","i","o","u","A","E","I","O","U","n","N","A","E","I","O","U","a","e","i","o","u","c","C","a","e","i","o","u","A","E","I","O","U","u","o","O","i","a","e","U","I","A","E"); $texto = str_replace($no_permitidas, $permitidas ,$cadena); return $texto; } $mycateg = quitar_tildes(str_replace('-',' ',$_GET["categ"])); //echo $mycateg; if(isset($_GET["categ"])){ if($mycateg=='social media community manager diseno web'){ $query_cat = "SELECT id, categoria, descripcion FROM categorias WHERE id=15"; } else{ $query_cat = "SELECT id, categoria, descripcion FROM categorias WHERE categoria='".$mycateg."'"; } $result_cat = $connf->query($query_cat); $row_cat = $result_cat->fetch_assoc(); $total_cat = $result_cat->num_rows; $mastertext = 'Másters'; } ?> include $queries."home-noticias-blog2017.php" ?>
echo nl2br($row_cat["descripcion"])?>
include $inc."masters-2015.php" ?>