Advertisement
Guest User

Untitled

a guest
Sep 11th, 2015
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. if (empty($error)) {
  2. $stmt = $dbh->prepare("INSERT INTO tagesroma(nome, cognome, indirizzo, civico, citta, prov)
  3. VALUES (:nome, :cognome, :indirizzo, :civico, :citta, :prov)");
  4. $stmt->bindParam(':nome', $nome);
  5. $stmt->bindParam(':cognome', $cognome);
  6. $stmt->bindParam(':indirizzo', $indirizzo);
  7. $stmt->bindParam(':civico', $civico);
  8. $stmt->bindParam(':citta', $citta);
  9. $stmt->bindParam(':prov', $prov);
  10. $stmt -> execute();
  11. } else {
  12. header("Location:tages.php?action=add");
  13. echo "MESSI is injured!!";
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement