Advertisement
SuperBag

simpanDataSupp.php

May 24th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.82 KB | None | 0 0
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Untitled Document</title>
  6. </head>
  7.  
  8. <body>
  9. <?php
  10.     include 'koneksi.php';
  11.    
  12.     $kdSupp=$_POST['kdSupp'];
  13.     $nmSupp=$_POST['nmSupp'];
  14.     $almtSupp=$_POST['almtSupp'];
  15.     $jnsSupp=$_POST['jnsSupp'];
  16.     $telpSUpp=$_POST['telpSupp'];
  17.    
  18.     echo "<br>";
  19.     echo $kdSupp;
  20.     echo $nmSupp;
  21.     echo $almtSupp;
  22.     echo $jnsSupp;
  23.     echo $telpSUpp;
  24.    
  25.     mysqli_query($koneksi, "insert into tbl_supp values('$kdSupp','$nmSupp','$almtSupp','$jnsSupp',$telpSUpp')");
  26.    
  27.     $data=mysqli_query($koneksi,"select*from tbl_supp where kd_supp='$kdSupp'");
  28.     while($d=mysqli_fetch_array($data)){
  29.         echo "<br>";
  30.         echo $d['kd_supp'];
  31.         echo $d['nm_supp'];
  32.         echo $d['almt_supp'];
  33.         echo $d['jns_supp'];
  34.         echo $d['telp_supp'];
  35.     }
  36.    
  37.     header("location:tampilDataSupp.php");
  38. ?>
  39. </body>
  40. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement