Advertisement
Guest User

Untitled

a guest
Apr 20th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. <?php
  2. $username = "hopwoodenterprises";
  3. $password = "";
  4. $host = "localhost";
  5. $database = "my_hopwoodenterprises";
  6.  
  7.  
  8.  
  9. $db = mysql_connect($host, $username, $password) or die("Error during connection");
  10. mysql_select_db($database, $db) or die("Error during the selection");
  11.  
  12.  
  13. $query="INSERT INTO Veicoli_Venduti (IDVeicolo, IDVenditore, Data, Prezzo, Acquirente) VALUES ('".$idveicolo."','".$_SESSION['IDutente']."','".$time1."','".$money."','".$buyer."');";
  14.  
  15. mysql_query($query);
  16. mysql_close($con);
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement