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 '' at line 1
codigo php:
Código PHP:
Ver original
$cambios.="palabras='" . $_POST["palabras"] . "'"; $cambios.=", descripcion='" . $_POST["descripcion"] . "'"; $sql = 'Update metas_index SET ' . $cambios . ' WHERE id= ' . $_POST["id"];
Gracias de antemano.