Advertisement
Guest User

Untitled

a guest
Mar 17th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. <?php
  2. session_start();
  3. include('../install/config.php');
  4. // Fetching Values From URL
  5. $titulo = $_POST['titulo'];
  6. $categoria = $_POST['categoria'];
  7. $conteudo = $_POST['conteudo'];
  8. $autor = $_SESSION['usuario'];
  9. $data = time();
  10. if (isset($_POST['titulo'])) {
  11. $queryPostC = "INSERT INTO topicos(titulo, categoria, texto, time, fixo) VALUES ('$titulo', '$categoria', '$autor', '$conteudo', '$data')";
  12.  
  13. $stmt=$pdo->prepare($queryPostC);
  14. $stmt->execute();
  15. }
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement