Ver Mensaje Individual
  #2 (permalink)  
Antiguo 06/05/2010, 10:46
Hidek1
Colaborador
 
Fecha de Ingreso: octubre-2009
Ubicación: Tokyo - Japan !
Mensajes: 3.867
Antigüedad: 14 años, 6 meses
Puntos: 334
Respuesta: Problema al mostrar la consulta con PHP

Código PHP:
Ver original
  1. $muni=$row['municipio'];
  2.  
  3. echo "<link type='text/css' rel='stylesheet' href='demopage.css'/>";
  4.  
  5. echo "<table>
  6. <thead><tr>
  7. <th>Colonia</th>
  8. <th>C.P.</th>
  9. <th>ID estado (relacion)</th>
  10. </tr></thead>";
  11.  
  12. while($row = mysql_fetch_array($result))

que se supone que tendra $muni=$row['municipio']; si asignas recien la variable en varias lineas mas abajo?
while($row = mysql_fetch_array($result))

debes asignar antes de usar

saludos!
__________________
More about me...
~ @rhyudek1
~ Github