Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require("../config.php");
- if ($_SERVER['REQUEST_METHOD'] == "POST"){
- $new_Text = str_replace("'", "''", $_POST['textoHome']);
- $sql = "UPDATE `site_texto-home` SET texto='$new_Text'";
- if ($link->query($sql) === TRUE) {
- echo "<div class="alert alert-success" role="alert">Texto editado com sucesso!</div>";
- } else {
- echo "<div class="alert alert-danger" role="alert">Falha ao editar o texto: " . $link->error . "</div>";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement