Ver Mensaje Individual
  #3 (permalink)  
Antiguo 14/11/2005, 13:10
Avatar de helthon
helthon
 
Fecha de Ingreso: junio-2005
Ubicación: Lima
Mensajes: 549
Antigüedad: 19 años, 9 meses
Puntos: 7
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>'
__________________
HELTHON FUENTES
FLORERIA FLORES PERU Floresperu.com.pe
Garantizamos que cada entrega de flores será de la más alta calidad y frescura