
28/02/2008, 12:13
|
| | Fecha de Ingreso: diciembre-2004
Mensajes: 103
Antigüedad: 20 años, 3 meses Puntos: 0 | |
Re: Update de campo segun fecha Mmm. probe en subir a mi hosting y tambien me sale un error de sintxis:
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 '( CURDATE(), vencimiento ) >= 15' at line 1
Creo que mi hosting tiene mysql 5 o algo asi, seguro que esta bien esta linea?
$sql = "UPDATE servicios SET deuda = 'si' WHERE DATE_DIFF( CURDATE(), vencimiento ) >= 15"; |