Hola, bueno consegui que se muestre el userid lo hice de esta forma:
Código PHP:
Ver original$rs2=mysql_query("SELECT * FROM answer JOIN usuarios ON answer.userid = usuarios.id WHERE answer.questionid=".$_REQUEST["idPreg"]." and answer.userid=$nameid ");
Ahora el tema, es que tengo que hacer un while para mostrar esto
Código PHP:
Ver original<li><a href="votar.php?valor=1&idanswer=<?php echo $rs1["answerid"];?>" title="1 Punto">1</a></li>
<li><a href="votar.php?valor=2&idanswer=<?php echo $rs1["answerid"];?>" title="2 Puntos">2</a></li>
<li><a href="votar.php?valor=3&idanswer=<?php echo $rs1["answerid"];?>" title="3 Puntos">3</a></li>
<li><a href="votar.php?valor=4&idanswer=<?php echo $rs1["answerid"];?>" title="4 Puntos">4</a></li>
<li><a href="votar.php?valor=5&idanswer=<?php echo $rs1["answerid"]; ?>" title="5 Puntos">5</a></li>
Pero el problema es que al cerrar el while despues de que termine la div que contiene esos links, se me repite entre una y dos veces todo.
Como hago?