Ver Mensaje Individual
  #2 (permalink)  
Antiguo 23/08/2012, 05:44
Avatar de totti026
totti026
 
Fecha de Ingreso: junio-2011
Mensajes: 150
Antigüedad: 13 años, 8 meses
Puntos: 4
Respuesta: Buscando entre dos fechas

Código HTML:
Ver original
  1. <form method="post">
  2. <input type="text" name="primer">
  3. <input type="text" name="ultimo">
  4. <input type="submit" name="enviar">
  5. </form>
en el php
Código PHP:
Ver original
  1. <?php
  2. $primer=$_post['primer'];
  3. $ultimor=$_post['ultimo'];
  4.  
  5. SELECT  nick FROM usuarios
  6.  WHERE '$primer'<= fecha_nacimiento and '$ultimo'>=fecha_nacimiento";
  7. ?>