I'm running the following php code:
require_once "config.php";
$pagina = $_POST['pagina'];
$conteudo = $_POST['edit'];
//mysql_query("DELETE FROM $pagina WHERE 1") or die("alguma coisa deu errado".mysql_error());
//mysql_query("INSERT INTO $pagina ('conteudo') VALUES ('$conteudo')");
mysql_query("UPDATE '$pagina' SET 'conteudo'='$conteudo' WHERE 1") or die("erro: ".mysql_error());
He says syntax is wrong but I do not see why, error print:
link
Or:
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 '' home 'SET' content '=' asx 'WHERE 1' at line 1