<form method="_POST">
<p>Busqueda</p>
<p>
<input type="text" name="busca" id="busca">
</p>
<p>
<input type="text" name="busca1" id="busca1">
</p>
<label>
<input type="submit" name="submit" value"buscar">
</label>
</form>
<?php
$busca="";
$busca1="";
$busca=$_POST['busca'];
$busca1=$_POST['busca1'];
$conexion= mysqli_connect('localhost','root','');
mysqli_select_db($conexion,'premios_bd');
if($busca!="" && $busca1!=""){
$busqueda=mysql_query("SELECT * FROM ganador Where N_acta BETWEEN '$busca' AND '$busca1'");
while($f=mysql_fech_arrar($busqueda)){
echo $f['Item'].' '.$f['Nombres']."<br>";
}
}
?>
I have this code to make a query to the bd mysql with a query between but I get the following error when opening the web:
Notice: Undefined index: search in C: \ xampp \ htdocs \ tres.php on line 16
Notice: Undefined index: search1 in C: \ xampp \ htdocs \ tres.php on line 17