Ver Mensaje Individual
  #17 (permalink)  
Antiguo 18/03/2011, 15:01
jjnel
 
Fecha de Ingreso: marzo-2010
Ubicación: colombia_santander
Mensajes: 68
Antigüedad: 14 años, 1 mes
Puntos: 0
Respuesta: consultar en lista o combos?

Cita:
Iniciado por bUllan9ebrio Ver Mensaje
te falta cerrar el If

Código PHP:
Ver original
  1. if ($cont > 0)//si nuestra consulta arroja resultados
  2. {
  3.      while($row=mysql_fetch_array($ejecutar))
  4.     {
  5.                $nombre=$row['nombmaq'];//obtenemos el nombre
  6.                $operario=$row['operario'];//obtenemos el operario
  7.     }
  8. }
  9. ?>


este error unexpected $end in siempre es por tema de llaves, saludos
AMIGO ME SALE ESTE ERROR


Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\wamp\www\Faico\recibo.php on line 4

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\wamp\www\Faico\recibo.php on line 4

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\wamp\www\Faico\recibo.php on line 5