mikroavr

getPHP

Mar 3rd, 2019
255
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  <?php
  2.  $server = "localhost";
  3.  $username = "your_user";
  4.  $password = "your_lass";
  5.  $database = "your_database";
  6.  
  7.  $koneksi = mysqli_connect($server,$username,$password,$database) or die("koneksi database gagal");
  8.  
  9. //$id = $_GET['id'];
  10. $current1 = $_GET['i1'];
  11. $current2 = $_GET['i2'];
  12. $current3 = $_GET['i3'];
  13.  
  14. mysqli_query($koneksi,"INSERT INTO current (current1, current2, current3)
  15.                                  VALUES ('$current1', '$current2', '$current3')");
  16.  
  17. ?>
RAW Paste Data