Código PHP:
Ver original
$consulta="UPDATE habitaciones SET $tipo where $tipo=".$_POST['cantidad_select']; $result_conexion=Conectar($consulta);
y me devuelve este error. no consigo encontrar el supuesto error de sintaxis.
Código HTML:
Ver original
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 'where triple=10' at line 1
¿alguien me puede ayudar? gracias!