Código HTML:
<?php sleep(1); //include_once('conexion.php'); $con=mysqli_connect("localhost","root","","test"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } if (!$_GET['ide']){ $sql = "SELECT * FROM detalle_Obra"; }else{ $ide = $_GET['ide']; $sql = "SELECT * FROM detalle_Obra WHERE cod_obra = $ide"; }
El error es al momento de ejercutar el php sin enviar la variable:
Notice: Undefined index: ide in D:\wamp\www\2015\listarDetalle.php on line 12