Ver Mensaje Individual
  #3 (permalink)  
Antiguo 30/07/2013, 05:45
antoniofr
 
Fecha de Ingreso: julio-2011
Ubicación: Granada
Mensajes: 13
Antigüedad: 15 años, 2 meses
Puntos: 3
Respuesta: buscar registros en mysql-php por fechas

Puedes hacerlo así:

Código PHP:
$fecha = "25/01/2013";
$sql = "select * from tabla where fecha like '%" . substr($fecha, 2) . "'"; 
El SQL generado sería éste:
Código:
select * from tabla where fecha like '%/01/2013'