Ver Mensaje Individual
  #2 (permalink)  
Antiguo 07/07/2015, 12:35
Avatar de xfxstudios
xfxstudios
 
Fecha de Ingreso: junio-2015
Ubicación: Valencia - Venezuela
Mensajes: 2.448
Antigüedad: 8 años, 10 meses
Puntos: 263
Respuesta: Problema con While

while:
Código PHP:
Ver original
  1. if($requisitos) {
  2. echo "<table width='100%'>";
  3. echo    "<tr>";
  4. echo        "<td width='75%'><center>Requisito</center></td><td><center>Accion</center></td>";
  5. echo    "</tr>";
  6. echo    "<tr>";
  7.     do{//inicio del bucle
  8. echo        "<td style='border-bottom-color:'><i class='fa fa-chevron-right'>&nbsp;</i>".$row["requisito"]."</td><td><center><button class='btn btn-danger'><i class='fa fa-ban'></i></button> <button class='btn btn-default'><i class='fa fa-pencil'></i></button></center></td>";
  9. echo    "</tr>";
  10. } while($row = mysqli_fetch_array($requisitos));//cierre del while
  11. echo "</table>";
  12.     }//ciere de la condicion if
  13.     else {//si no hay registros en la base
  14. echo "<table width='100%'>";
  15. echo    "<tr>";
  16. echo        "<td width='80%'><center></center></td><td><center></center></td>";
  17. echo    "</tr>";
  18. echo    "<tr>";
  19. echo        "<td colspan='2'><center>No hay Datos</center></td>";
  20. echo    "</tr>";
  21. echo "</table>";
  22. }