while:
Código PHP:
Ver originalif($requisitos) {
echo "<table width='100%'>";
echo "<tr>";
echo "<td width='75%'><center>Requisito</center></td><td><center>Accion</center></td>";
echo "</tr>";
echo "<tr>";
do{//inicio del bucle
echo "<td style='border-bottom-color:'><i class='fa fa-chevron-right'> </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>";
echo "</tr>";
echo "</table>";
}//ciere de la condicion if
else {//si no hay registros en la base
echo "<table width='100%'>";
echo "<tr>";
echo "<td width='80%'><center></center></td><td><center></center></td>";
echo "</tr>";
echo "<tr>";
echo "<td colspan='2'><center>No hay Datos</center></td>";
echo "</tr>";
echo "</table>";
}