File: pagamentiinsert.php

package info (click to toggle)
odontolinux 0.6.1-6
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,128 kB
  • ctags: 566
  • sloc: php: 4,137; sh: 262; makefile: 46
file content (18 lines) | stat: -rw-r--r-- 993 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<? require("testa.php");?>

<?php
                        //Settaggio data Formato Europeo 
                        pg_Exec($conn,"SET DATESTYLE TO 'European';");
                        //Inserimento 
                        $esito = pg_Exec($conn, "INSERT INTO pagamenti (id, idvocepagamenti, cognome, nome, data, prestazione, quantita, prezzounitario, prezzodovuto, prezzodatooggi, rimanedapagare, tipopagamento, note)  VALUES ($idpz, $idvocepagamenti, '$cognome', '$nome', '$data', '$prestazione', $quantita, $prezzounitario, $prezzodovuto, $prezzodatooggi, $rimanedapagare - $prezzodatooggi, '$tipopagamento', '$note');");
                        if (!$esito) {
                                      echo "Si &egrave; verificato un errore.\n";
                                      exit;
                                      } // Errore interrogazione database
                        pg_FreeResult($esito);
?>

<? include("includi_mostra_pagamenti.php");?>
<? include("piede.php");?>