Академический Документы
Профессиональный Документы
Культура Документы
Cuando importamos el ODS debemos marcas la primera opcin que es mostrar los nombres de campos
DA IGUAL MAYUSCULAS Y MINUSCULAS
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
table{
width: 50%;
border: 1px dotted #FF0000;
margin: auto;
</style>
</head>
<body>
<?php
require("conexion38.php");
if(mysqli_connect_errno()){
exit();
}
$resultados=mysqli_query($conexion, $consulta);
//$fila=mysqli_fetch_row($resultados); //ejecuta una lnea del recurse cada ves que la llamas
while($fila=mysqli_fetch_row($resultados)){
echo "<table><tr><td>";
echo $fila[0] . "</td><td> ";
echo $fila[1] . "</td><td> ";
echo $fila[2] . "</td><td> ";
echo $fila[3] . "</td><td></tr></table> ";
/* echo $fila[4] . "<td></td> ";
echo $fila[5] . "<td></td> ";
echo $fila[6] . "<td></td> "; */
echo "<br>";
echo "<br>";
}
mysqli_close($conexion);
?>
</body>
</html>
CARACTERES COMODINES
ARRAYS ASOCIATIVOS
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
table{
width: 50%;
border: 1px dotted #FF0000;
margin: auto;
</style>
</head>
<body>
<?php
require("conexion38.php");
if(mysqli_connect_errno()){
exit();
}
//$fila=mysqli_fetch_row($resultados); //ejecuta una lnea del recurse cada ves que la llamas
while($fila=mysqli_fetch_array($resultados, MYSQL_ASSOC)){
echo "<table><tr><td>";
echo $fila[0] . "</td><td> ";
echo $fila[1] . "</td><td> ";
echo $fila[2] . "</td><td> ";
echo $fila[3] . "</td><td></tr></table> ";
/* echo $fila[4] . "<td></td> ";
echo $fila[5] . "<td></td> ";
echo $fila[6] . "<td></td> "; */
echo "<br>";
echo "<br>";
}
mysqli_close($conexion);
?>
</body>
</html>