Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/09/2004, 18:31
OXIGENO
 
Fecha de Ingreso: febrero-2002
Mensajes: 442
Antigüedad: 22 años, 2 meses
Puntos: 2
mySql error Select de fecha

hola amigos PHPeros

Estoy migrando mis conocimientos a PHP

estoy haciendo una consulta por fecha... por medio de la url

http://localhost/consejoj/PHP/veedor.php?sql=SELECT * FROM CALENDAR where
fecha='2004-09-25'

Este es el error!.....
You have an error in your SQL syntax. Check the manual that corresponds to
your MySQL server version for the right syntax to use near '\'2004-9-15\''
at line 1:

Cuando ejecuto la misma consulta en el sql Query del MySQL Front... me
arroja muy bien los resultados... sin ningun error....
select * from calendar where fecha = '2004-09-25'

Que puede ser???

Por si las dudas...
Tengo win xp Pro Service Pack 1
php-4.3.8 win
mysql-4.0.21-win
MySQL-Front_2.5
MyODBC-standard-3.51.9-win


Gracias de antemano!:.. salu T
__________________
tech-nico.com