Prueba con esto :
Código HTML:
Ver original<center><h2> citas del dia
</h2><hr> <form action="cita4.php" method="post">
<input type="text" name="dia"> <input type="submit" name="enviar" value="Enviar"></p> </center>
y recoge los datos con esto:
Código PHP:
Ver original<?php
$conexion=mysql_connect("localhost","root","1234") or
die ('No pudo conectarse'); $dia=$_POST['dia'];
$sql="SELECT nombre, hora FROM citas WHERE dia = '$dia' ORDER BY hora ASC" ;
{
echo"<center><h2><p>ERROR AL REALIZAR LA SENTENCIA SELECT</center>";
}
if($numero==0)
{
echo"<center><h2><p>NO EXISTE CIITAS PARA EL DIA : $dia</center></p>";
}
echo"<center><h2><p> LISTADO </p>
<table width='500' border='1'>
<tr><td><p> NOMBRE </p></td>
<td><p> HORA </p></td>
<td><p> EDAD </p></td>";
// <td><p> EQUIPO </p></td>";
echo"<tr><td>$fila[nombre]</td>
<td>$fila[hora]</td>
<td>$dia</td>
</tr>";
}
echo"</table></center>";
?>
Saludos