Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>Untitled Document</title>
- </head>
- <body>
- <?php
- include 'koneksi.php';
- $kdSupp=$_POST['kdSupp'];
- $nmSupp=$_POST['nmSupp'];
- $almtSupp=$_POST['almtSupp'];
- $jnsSupp=$_POST['jnsSupp'];
- $telpSUpp=$_POST['telpSupp'];
- echo "<br>";
- echo $kdSupp;
- echo $nmSupp;
- echo $almtSupp;
- echo $jnsSupp;
- echo $telpSUpp;
- mysqli_query($koneksi, "insert into tbl_supp values('$kdSupp','$nmSupp','$almtSupp','$jnsSupp',$telpSUpp')");
- $data=mysqli_query($koneksi,"select*from tbl_supp where kd_supp='$kdSupp'");
- while($d=mysqli_fetch_array($data)){
- echo "<br>";
- echo $d['kd_supp'];
- echo $d['nm_supp'];
- echo $d['almt_supp'];
- echo $d['jns_supp'];
- echo $d['telp_supp'];
- }
- header("location:tampilDataSupp.php");
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement