Ver Mensaje Individual
  #1 (permalink)  
Antiguo 30/07/2014, 16:56
Avatar de odek
odek
 
Fecha de Ingreso: julio-2011
Ubicación: México
Mensajes: 55
Antigüedad: 12 años, 10 meses
Puntos: 1
problemas al definir una variable

CODIGO



<html>
<head>
<meta charset="UTF-8">
<title>Actualizar</title>
</head>
<body>
<?php


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

$fecha = $_GET['fecha'];

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

$resultado = mysqli_query($conexion,$sentencia);
echo '<pre>';
print_r(mysqli_fetch_array($resultado));
?>
</body>
</html>



RESULTADO:


Notice: Undefined index: fecha in /Applications/XAMPP/xamppfiles/htdocs/acceso/enunsitio/act.php on line 15


porque no reconoce la variable fecha?????
__________________
Mi life in pixel -_-