[HOME]

Path : /home/hermanostamargo/ftp/contacto/
Upload :
Current File : /home/hermanostamargo/ftp/contacto/sql.php

<?php

for($x = 0; $x < $arrlength; $x++) {
	if ( $languages[$x][2] == 1 ) {
		if ( $idioma == $languages[$x][0] ) {
    		// familias
			$sql = "SELECT 
					titulo_{$languages[$x][0]} AS titulo,
					descripcion_{$languages[$x][0]} AS descripcion,
					title_{$languages[$x][0]} AS title,
					description_{$languages[$x][0]} AS description,
					tel,
					tel2,
					tel3,
					cp,
					provincia, 
					localidad,
					email, 
					direccion, 
					latitud,
					longitud,
					foto
					FROM ". $tabla_bd ." WHERE id=1";				

    	}
	}
}



$res = mysqli_query($conn,$sql);
$row = mysqli_fetch_array($res);

//para metas y breadcrumb
$titulo = $row['titulo'];
$title = $row['title'];
$description = $row['description'];
$latitud = $row['latitud'];
$longitud = $row['longitud'];


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."/";	
		}
	}
}

?>