Buenas a todos,
Quiero modificar datos en una base de datos desde PHP con la siguiente consulta:
Código PHP:
$sql = "UPDATE not_main SET esta_publicada=0, fecha_publicada' ' WHERE not_id=" . $_POST['article'];
El problema es que me da este error:
No se puede publicar el artículo; 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 ''' WHERE not_id=1' at line 1
Mi versión de MySQL es la 4.0.26, ¿qué es lo que estoy haciendo mal?
Muchas gracias!