ok mira ahi te va todo el codigo: este es el codigo completo!!!
Código HTML:
Ver original<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <center><div style="width:872px; border:outset #009; background:#FFF; overflow: auto;"> <table height="20" width="55%" align="center"> <td align="center"><img src="logo psicologia.JPG"/></td> <td align="center"><input type="button" name="Grabar" id="Grabar" value="Grabar Encuesta" onclick="location.href = 'grabar.php'"/> <input type="button" name="inicio" id="inicio" value="Inicio" onclick="location.href = 'index.php'"/></td> <td align="center">Estos son los Encuestados hasta el Momento
</td>
Código PHP:
Ver original<?
if (!$conexion)
{
}
$select=" SELECT pre.eCodPregunta num, pre.tNombre pregunta, res.Identificador, res.tNombre respuesta ".
" FROM subida AS sub ".
" INNER JOIN preguntas AS pre ON sub.eCodPregunta = pre.eCodPregunta ".
" INNER JOIN respuestas AS res ON sub.eCodRespuesta = res.eCodRespuesta ";
//print $select;
?>
Código HTML:
Ver original<center><div style="width:872px; border:outset #009; background:#FFF; overflow: auto;"> <table height="20" width="55%" align="center" border="0">
<td align="center" bgcolor="#CCCCCC">N
úmero
</td> <td align="center" bgcolor="#CCCCCC">Preguntas
</td> <td align="center" bgcolor="#CCCCCC">Identificadores
</td> <td align="center" bgcolor="#CCCCCC">Respuestas
</td>
<? while($rEncuestados = mysql_fetch_array($rsEncuestados)) { ?>
<tr onmousemove="this.style.background='#CCCCCC'" onmouseout="this.style.background='#FFFFFF'"> <td align="center" nowrap="nowrap" height="20"><?=$rEncuestados{'num'} ?></td> <td align="left" nowrap="nowrap" height="20"><?=utf8_encode($rEncuestados{'pregunta'}) ?></td> <td align="center" nowrap="nowrap" height="20"><?=$rEncuestados{'Identificador'}; ?></td> <td align="left" nowrap="nowrap" height="20"><?=utf8_encode($rEncuestados{'respuesta'}); ?></td> <? } ?>