TOTAL REGISTROS: echo $total;?> TOTAL PAG: echo $totalpag;?>
PAG INICIAL: echo $idini;?>
for ($i=1 ; $i<=$totalpag ; $i++){
if($i==$pagactual){
echo("
" . $i . " ");
}else {
echo( "
" . $i . " " );
}
}
?>
ID |
NOMBRE |
DIRECCION |
MAIL |
NACIMIENTO |
$sqltxt = "SELECT * FROM clientes LIMIT " . $idini . "," . $regporpag;
$sqldevolucion = mysqli_query($conn,$sqltxt);
if (!mysqli_num_rows($sqldevolucion)) {
echo("Error, no se devuelven registros".$sqltxt );
} else {
$i=1;
while ($registro = mysqli_fetch_array($sqldevolucion, MYSQLI_ASSOC)){
echo("");
echo("" . $registro["id"] . " | " );
echo("".$registro["nombre"] . " | " );
echo("".$registro["direccion"] . " | " );
echo("".$registro["mail"] . " | " );
echo("".$registro["fecha_nac"] . " | " );
echo("
");
}
mysqli_free_result($sqldevolucion); //devuelvo recurso a memoria
mysqli_close($conn); // cierro conexion
}
?>