include 'lib/language.php';
$enviado=$_GET['enviado'];
$ver=$_GET['ver'];
$temaopc=$_GET['temaopc'];
if($enviado=='ok') {
function Conectarse()
{
if (!($link=mysql_connect("mysql5-p1.cepal.org","juvelac_ro","$5juvelac-ro_k")))
{
echo "Error conectando a la base de datos.";
exit();
}
if (!mysql_select_db("juvelac",$link))
{
echo "Error seleccionando la base de datos.";
exit();
}
return $link;
}
$link=Conectarse();
//while de los temas desde tabla resultados
$consulta_temas=mysql_query("select * from encuesta_resultados where seminario='sv1' and estado='1' ",$link);
while($row = mysql_fetch_array($consulta_temas))
{
$tema_x7=$row["tema"];
$votos_x7=$row["votos"];
if($tema_x7=='educacion') $tema_x7="Educaci�n";
else if($tema_x7=='empleo') $tema_x7="Empleo";
else if($tema_x7=='salud') $tema_x7="Salud";
else if($tema_x7=='participacion-politica') $tema_x7="Participaci�n pol�tica";
else if($tema_x7=='violencia') $tema_x7="Violencia";
else if($tema_x7=='cultura') $tema_x7="Cultura";
else if($tema_x7=='agenda2030') $tema_x7="Agenda 2030 y j�venes";
$vGet_highchart_categories .= "'" . $tema_x7 . "',";
$vGet_highchart_series .= "" . $votos_x7 . ",";
};
mysql_free_result($consulta_temas);
mysql_close($link);
} else {} //if $enviado=='ok'
?>
include("_zona_cabecera.php"); ?>
| |
Elige un tema
|
|
|
|
include("_zona_piedepagina.php"); ?>