Ver Mensaje Individual
  #1 (permalink)  
Antiguo 31/07/2014, 15:52
Avatar de odek
odek
 
Fecha de Ingreso: julio-2011
Ubicación: México
Mensajes: 55
Antigüedad: 12 años, 9 meses
Puntos: 1
Problemas al mostar resultados de una tabla

Ya comprobé con

var_dump($_GET);

y muestra el resultado al llamar la base de datos, sin embargo el echo del while no lo muestra


CODIGO-----

<?php
session_start();

$conexion = mysqli_connect("localhost","odek","cac4b160","acno r14"); if($conexion->connect_error){
die("Error en la conexion : ".$conexion->connect_errno."-".$conexion->connect_error);
};

if (isset($_GET['fecha'])) {
$fecha = $_GET['fecha'];
} else {
$fecha = "";
}
var_dump($_GET);


$sentencia = "SELECT * FROM IO018TOQ059N62014 WHERE fecha='".$fecha."'
";


echo '
<table width="100%" border="1">
<tr>
<td>FECHA</td>
</tr>
</table>
';
$resultado = mysqli_query($conexion,$sentencia);
while ($fila = mysqli_fetch_array($resultado)){
echo '
<tr><td><input type="date" name="fecha" value='.$fila['fecha'].'></td></tr>
';
}


?>
__________________
Mi life in pixel -_-