<?php
// textos
for($x = 0; $x < $arrlength; $x++) {
if ( $languages[$x][2] == 1 ) {
if ( $idioma == $languages[$x][0] ) {
$sql_aviso = "SELECT
serv.id AS serv_id,
serv.titulo_{$languages[$x][0]} AS titulo,
serv.descripcion_{$languages[$x][0]} AS descripcion,
serv.title_{$languages[$x][0]} AS title,
serv.description_{$languages[$x][0]} AS description
FROM {$tabla_bd} AS serv
";
}
}
}
$res_aviso = mysqli_query($conn,$sql_aviso);
$row_aviso = mysqli_fetch_array($res_aviso);
//para metas y breadcrumb
$res2 = mysqli_query($conn,$sql_aviso);
$row = mysqli_fetch_array($res2);
$titulo = $row['titulo'];
$tituloSeccion = $titulo; //breadcrumb
$title = $row['title'];
$description = $row['description'];
echo mysqli_error($conn);
// canonical
for($x = 0; $x < $arrlength; $x++) {
if ( $languages[$x][2] == 1 ) {
if ( $idioma == $languages[0][0] ) {
$canonical = PROTOCOL . DOMAIN_NAME . $seccion."/";
} else {
$canonical = PROTOCOL . DOMAIN_NAME . $idioma . "/" . $seccion."/";
}
}
}
?>