Viewing file: votadores.php (1.22 KB) -rw-rw-r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<head>
<link rel="stylesheet" type="text/css" href="./nuevo.css">
<link rel="STYLESHEET" type="text/css" href="./estilo.css">
<title>Resultados de la encuesta</title>
</head>
<body bgcolor="#B5DCFD">
<?php
include "/home/wwwroot/frames/conn.php";
if (strpos("=",$_REQUEST['poll'])){
die();
}
$titulo=@mysql_fetch_array(mysql_query("select poll_title as titulo from papyr225_phpb1.phpbb_topics where topic_id = {$_REQUEST['poll']}",$conn));
if (mysql_error())die();
echo "<center><h2>Encuesta: {$titulo['titulo']}</h2>";
echo "<table><tr><th bgcolor=#66B8FB> Los Sufridos votantes son:</th>";
$sql="SELECT t1.user_id, t1.username
FROM papyr225_phpb1.phpbb_users AS t1, papyr225_phpb1.phpbb_poll_votes AS t2
WHERE t2.topic_id ={$_REQUEST['poll']}
AND t2.vote_user_id = t1.user_id";
$res=mysql_query($sql,$conn);
$counter=1;
while($row=mysql_fetch_array($res)){
if (intval($counter/2)==$counter/2){
$color="#E8FCFF";
}else{
$color="#B0F5FF";
}
$counter++;
echo "<tr><td bgcolor=$color>{$row['username']}</td></tr>";
}
echo "<table>";
?> <br><br><a href="javascript:history.back()" style="text-decoration: none;"><img src="volver.jpg" border="0"></a>
</body></html>
|