Código PHP :
<?php
$servidor = "censurado";
$usuario = "censurado";
$password = "censurado";
$base = "censurado";
$conexion = mysqli_connect($servidor, $usuario, $password) or die("Error al conectarse al servidor");
mysqli_select_db($conexion, $base) or die("Error al conectarse a la base de datos");
$buscar = mysqli_query($conn, "SELECT id, fecha, materia, tarea FROM 1esoa");
if (mysqli_num_rows($buscar) > 0) {
?>
<table border = "1" width = "100">
<tr>
<th>ID</th>
<th>Data</th>
<th>Materia</th>
<th>Tarea</th>
</tr>
<?php
while ($datos = mysqli_fetch_array($buscar)){
?>
<tr>
<td> <?=$datos["id"]?> </td>
<td> <?=$datos["fecha"]?> </td>
<td> <?=$datos["materia"]?> </td>
</tr>
<?php
}
mysqli_free_result($buscar);
?>
</table>
<?php
} else {
echo "No se encontraron datos en la base de datos";
}
?>
cuando lo subo a 260mb.net me dice que no se encontraron datos en la base de datos cuando sí hay datos insertados.
Gracias
