![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
28/10/2011, 13:02
|
![Avatar de Briss](http://static.forosdelweb.com/customavatars/avatar422282_5.gif) | | | Fecha de Ingreso: junio-2011
Mensajes: 1.293
Antigüedad: 13 años, 7 meses Puntos: 12 | |
Respuesta: Cambiar Formato de fecha traida de una BBDD Gracias por tu ayuda mira he cambiado asi, como me indicas
sprintf("SELECT date_format(fecha, \'%%d-%%m-%%Y\') FROM avisos WHERE id = %s", GetSQLValueString($colname_alumnos, "text"));
pero tengo este 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 '\'%d-%m-%Y\') FROM avisos WHERE id = '2'' at line 1 |