[HOME]

Path : /home/hermanostamargo/www/home/
Upload :
Current File : /home/hermanostamargo/www/home/sql.php

<?php 
$sql = "SELECT * FROM ". $tabla_bd ." WHERE id = 1";
$resul = mysqli_query($conn,$sql);
$row = mysqli_fetch_array($resul);
//echo $sql ;

for($x = 0; $x < $arrlength; $x++) {
	if ( $languages[$x][2] == 1 ) {
		if ( $idioma == $languages[$x][0] ) {
    		$titulo = $row["titulo_".$languages[$x][0]];
    		$descripcion = $row["descripcion_".$languages[$x][0]];
			$descripcion1 = $row["descripcion1_".$languages[$x][0]];
			$descripcion2 = $row["descripcion2_".$languages[$x][0]];
			$descripcion3 = $row["descripcion3_".$languages[$x][0]];
    		$title = $row["title_".$languages[$x][0]];
    		$description = $row["description_".$languages[$x][0]];

    		//imagenes carrusel
			$sql_img = "SELECT 
							id, 
							imagen, 
							imagen_thumb, 
							imagen_med, 
							leyenda_{$languages[$x][0]} AS leyenda,
							leyenda2_{$languages[$x][0]} AS leyenda2
						FROM  ". $tabla_bd ."fotos WHERE idfamilia=1 ORDER by orden ASC";

    	}
	}
}



$res_img = mysqli_query($conn,$sql_img);
$res_img2 = mysqli_query($conn,$sql_img);
$res_img2_amp = mysqli_query($conn,$sql_img);

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 . $tabla_bd."/";
		} else { 
			$canonical = PROTOCOL . DOMAIN_NAME . $idioma . "/" . $tabla_bd."/";	
		}
	}
}
?>