Advertisement
Lucas-Tenorio

Untitled

Jun 27th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. <?php
  2.  
  3. /*
  4. Sistema Feito Pela Empresas Tenorio - Todos os Direitos Reservados
  5. www.empresastenorio.com
  6. By: Lucas Tenorio
  7. */
  8.  
  9. include("seguranca.php"); // Inclui o arquivo com o sistema de segurança
  10. protegePagina(); // Chama a função que protege a página
  11.  
  12. include 'conectar.php';
  13.  
  14. $id = $_POST['id'];
  15. $caption = $_POST['caption'];
  16. $page_strings_1 = $_POST['page_strings_1'];
  17. $page_strings_2 = $_POST['page_strings_2'];
  18.  
  19. $sqlinsert = "Update catalog_pages SET caption='$caption', page_strings_1='$page_strings_1', page_strings_2='$page_strings_2' where id=$id";
  20. mysql_query($sqlinsert) or die(mysql_error());
  21. mysql_query($sqlinsert) or die(mysql_error());
  22.  
  23. ?>
  24. <script language= "JavaScript">
  25. location.href="catalogo.php"
  26. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement