Re: Problemas con fechas

From: Date: Fri, 03 Nov 2000 10:18:43 +0000
Subject: Re: Problemas con fechas
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-3137@lists.php.net to get a copy of this message
>$fechaini = date("Y/m/d",mktime(0,0,0,1,1,2000)); >$fechafin = date("Y/m/d",mktime(0,0,0,2,1,2000)); >$res = odbc_exec($bd, "SELECT * FROM pruebas WHERE finicio >= $fechaini AND finicio < >$fechafin ORDER >BY finicio, ffin"); > >Pero no me devuelve ningun registro. > >¿Se os ocurre alguna solucion? el primer paso es saber si la consulta sql esta bien hecha. haz un echo del string de la consulta, "SELECT * FROM pruebas WHERE finicio >= $fechaini AND finicio < $fechafin ORDER >BY finicio, ffin" y luego haz copiar y pegar en la consola de la base de datos... saludos, josevi

« previous php.general.es (#3137) next »