
$sql = $mysql->Sql("interprete_texto2",array('status = 1'),"id desc");
$res = $mysql->Query($sql);
$row = $mysql->Row($res);
?>
Under menypunktet Finn en tolk finner du mer informasjon om dette.

if (!$_COOKIE["CookieEnquete"]) {
?>
}
else {
$sql = $mysql->Sql("enquete",array('status = 1'),"id desc");
$res = $mysql->Query($sql);
$row = $mysql->Row($res);
$pergunta = utf8_decode($row['pergunta']);
$id_enquete = $row['id'];
$result1 = 0;
$result2 = 0;
$result3 = 0;
$result4 = 0;
$result5 = 0;
$result6 = 0;
$result7 = 0;
$result8 = 0;
$result9 = 0;
$result10 = 0;
$result11 = 0;
$result12 = 0;
$result13 = 0;
$result14 = 0;
$result15 = 0;
$result16 = 0;
$result17 = 0;
$result18 = 0;
$result19 = 0;
$result20 = 0;
$total = 0;
$where = "id_enquete = " . $id_enquete;
$sql2 = $mysql->Sql("enquete_resposta",array($where),"resposta desc");
$res2 = $mysql->Query($sql2);
while($row2 = $mysql->Row($res2)):
if ($row2['resposta'] == 1) {
$result1++;
}
if ($row2['resposta'] == 2) {
$result2++;
}
if ($row2['resposta'] == 3) {
$result3++;
}
if ($row2['resposta'] == 4) {
$result4++;
}
if ($row2['resposta'] == 5) {
$result5++;
}
if ($row2['resposta'] == 6) {
$result6++;
}
if ($row2['resposta'] == 7) {
$result7++;
}
if ($row2['resposta'] == 8) {
$result8++;
}
if ($row2['resposta'] == 9) {
$result9++;
}
if ($row2['resposta'] == 10) {
$result10++;
}
if ($row2['resposta'] == 11) {
$result11++;
}
if ($row2['resposta'] == 12) {
$result12++;
}
if ($row2['resposta'] == 13) {
$result13++;
}
if ($row2['resposta'] == 14) {
$result14++;
}
if ($row2['resposta'] == 15) {
$result15++;
}
if ($row2['resposta'] == 16) {
$result16++;
}
if ($row2['resposta'] == 17) {
$result17++;
}
if ($row2['resposta'] == 18) {
$result18++;
}
if ($row2['resposta'] == 19) {
$result19++;
}
if ($row2['resposta'] == 20) {
$result20++;
}
$total++;
endwhile;
?>
if($row['respostas1'] <> "") {
$porcentagem = ($result1 * 100)/$total;
$porcentagem_arredondada = round($porcentagem);
?>
}
?>
if($row['resposta2'] <> "") {
$porcentagem = ($result2 * 100)/$total;
$porcentagem_arredondada = round($porcentagem);
?>
}
?>
if($row['resposta3'] <> "") {
$porcentagem = ($result3 * 100)/$total;
$porcentagem_arredondada = round($porcentagem);
?>
}
?>
if($row['resposta4'] <> "") {
$porcentagem = ($result4 * 100)/$total;
$porcentagem_arredondada = round($porcentagem);
?>
}
?>
if($row['resposta5'] <> "") {
$porcentagem = ($result5 * 100)/$total;
$porcentagem_arredondada = round($porcentagem);
?>
}
?>
if($row['resposta6'] <> "") {
$porcentagem = ($result6 * 100)/$total;
$porcentagem_arredondada = round($porcentagem);
?>
}
?>
if($row['resposta7'] <> "") {
$porcentagem = ($result7 * 100)/$total;
$porcentagem_arredondada = round($porcentagem);
?>
}
?>
if($row['resposta8'] <> "") {
$porcentagem = ($result8 * 100)/$total;
$porcentagem_arredondada = round($porcentagem);
?>
}
?>
if($row['resposta9'] <> "") {
$porcentagem = ($result9 * 100)/$total;
$porcentagem_arredondada = round($porcentagem);
?>
}
?>
if($row['resposta10'] <> "") {
$porcentagem = ($result10 * 100)/$total;
$porcentagem_arredondada = round($porcentagem);
?>
}
?>
if($row['resposta11'] <> "") {
$porcentagem = ($result11 * 100)/$total;
$porcentagem_arredondada = round($porcentagem);
?>
}
?>
if($row['resposta12'] <> "") {
$porcentagem = ($result12 * 100)/$total;
$porcentagem_arredondada = round($porcentagem);
?>
}
?>
if($row['resposta13'] <> "") {
$porcentagem = ($result13 * 100)/$total;
$porcentagem_arredondada = round($porcentagem);
?>
}
?>
if($row['resposta14'] <> "") {
$porcentagem = ($result14 * 100)/$total;
$porcentagem_arredondada = round($porcentagem);
?>
}
?>
if($row['resposta15'] <> "") {
$porcentagem = ($result15 * 100)/$total;
$porcentagem_arredondada = round($porcentagem);
?>
}
?>
if($row['resposta16'] <> "") {
$porcentagem = ($result16 * 100)/$total;
$porcentagem_arredondada = round($porcentagem);
?>
}
?>
if($row['resposta17'] <> "") {
$porcentagem = ($result17 * 100)/$total;
$porcentagem_arredondada = round($porcentagem);
?>
}
?>
if($row['resposta18'] <> "") {
$porcentagem = ($result18 * 100)/$total;
$porcentagem_arredondada = round($porcentagem);
?>
}
?>
if($row['resposta19'] <> "") {
$porcentagem = ($result19 * 100)/$total;
$porcentagem_arredondada = round($porcentagem);
?>
}
?>
if($row['resposta20'] <> "") {
$porcentagem = ($result20 * 100)/$total;
$porcentagem_arredondada = round($porcentagem);
?>
}
?>
/**************************************************************************************************/
?>
}
?>

$sql = $mysql->Sql("ingles",array('status = 1'),"titulo");
$res = $mysql->Query($sql);
while ($row = $mysql->Row($res)):
?>
endwhile;
?>
