include_once('mhEncabezado1.php');
if($_SESSION['LENG'] == 'Ing'){
$gsTitulo = "Frequently Asked Questions";
$gsDescripcion = "This page provides answers to most frequent questions.";
$gsKeywords = "FAQs, Frequent Asked Questions, Answers";
}else{
$gsTitulo = "Preguntas Frecuentes";
$gsDescripcion = "Esta página da respuesta a las preguntas mas frecuentes.";
$gsKeywords = "Preguntas Frecuentes, Respuestas";
}
include_once('mhEncabezado2.php');
//echo "
HTTPS:".$_SERVER['HTTPS'].", SERVER_NAME:".$_SERVER['SERVER_NAME'].", SCRIPT_NAME:".$_SERVER['SCRIPT_NAME'];
?>
echo $gsTitulo;?> |
|
$sSQL = "SELECT *
FROM mhfaqs
ORDER BY 1";
$rs = mysqli_query($goCnn, $sSQL) or die('La consulta falló: ' . mysqli_error($goCnn));
// Impresion de resultados en HTML
$nlin = 0;
while ($linea = mysqli_fetch_array($rs, MYSQLI_ASSOC)) {
if($_SESSION['LENG'] == 'Ing'){
$Pregunta = $linea['PreguntaIng'];
}else{
$Pregunta = $linea['PreguntaEsp'];
}
echo ''; echo $Pregunta; echo ' |
';
$sSQL2 = "SELECT *
FROM mhfaqrespuestas
WHERE idfaq = ".$linea['Id']."
ORDER BY 1";
$rs2 = mysqli_query($goCnn, $sSQL2) or die('La consulta falló: ' . mysqli_error($goCnn));
while ($linea2 = mysqli_fetch_array($rs2, MYSQLI_ASSOC)) {
if($_SESSION['LENG'] == 'Ing'){
$Respuesta = $linea2['RespuestaIng'];
}else{
$Respuesta = $linea2['RespuestaEsp'];
}
echo ''; echo $Respuesta; echo ' |
';
}
mysqli_free_result($rs2);
$nlin++;
}
// Liberar conjunto de resultados
mysqli_free_result($rs);
// // Cerrar la conexion
// ysqli_close($goCnn);
?>
include_once('mhPiepagina.php');
?>