<?php
for($x = 0; $x < $arrlength; $x++) {
if ( $languages[$x][2] == 1 ) {
if ( $idioma == $languages[$x][0] ) {
//familias
$sql = "SELECT
fs.id,
fs.imagen,
fs.titulo_{$languages[$x][0]} as titulo,
fs.descripcion_{$languages[$x][0]} as descripcion,
fs.title_{$languages[$x][0]} as title,
fs.title_{$languages[$x][0]} as description
FROM {$tabla_bd}familia AS fs
WHERE id=1";
}
}
}
$res = mysqli_query($conn,$sql);
$row = mysqli_fetch_array($res);
//para metas y breadcrumb
$res2 = mysqli_query($conn,$sql);
$row = mysqli_fetch_array($res2);
$titulo = $row['titulo'];
$title = $row['title'];
$description = $row['description'];
$tituloSeccion = $titulo; //breadcrumb
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."/";
}
}
}
?>