Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- $data=$_POST["data"];
- $ora=$_POST["ora"];
- $note=$_POST["note"];
- $effettuata=$_POST["si"];
- $paziente=$_POST["paziente"];
- $medico=$_POST["medico"];
- $prestazioni=$_POST["prestazioni"];
- echo"<center>I dati sono stati presi<br>";
- $hostname="localhost";
- $username="root";
- $password="";
- $db="sitomedico";
- $connessione=mysqli_connect($hostname, $username, $password, $db) or die("Errore di connessione<br>");
- if($effettuata=="on"){
- $effettuata=1;
- }
- else{
- $effettuata=0;
- }
- $strSQL="UPDATE visite SET data="."'".$data."'"", effettuata ="."'".$effettuata."'"", id_med= "."'".$medico."'"",id_pre="."'".$prestazioni."'"",
- id_paz="."'".$paziente."'"", ora="."'".$ora."'"", note="."'".$note."'"",WHERE num_vis='".$check."' ";
- echo"Stiamo aggiornando la visita";
- echo"Stai per tornare alla pagina precedente";
- header('Refresh: 5; http://localhost/sitomedico/modifica.php');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement