Gracias por tu Respuesta Keleriano pero me sale este error
Cita: La consulta falló: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Resource id #4' at line 1
Mi codigo es el siguiente
Código PHP:
$consulta = mysql_query("SELECT * FROM `evento` ");
$resultado = mysql_query($consulta) or die('La consulta falló: ' . mysql_error());
echo' <select name="evento" id="idevento">';
while ($linea = mysql_fetch_array($resultado))
{
echo '<option value="'.$linea[$nombreevento].'">'.$linea[$nombreeevento].'</option>';
}
echo' </select>';