proses tambah anggota
<?
include "konnek.php"; ?>
<html>
<head>
<title>Tambah Data</title>
<body>
<?php
$no_id = $_GET['no_id'];
$nama = $_GET['nama'];
$jenis_kelamin = $_GET['jenis_kelamin'];
$alamat = $_GET['alamat'];
$status_marital = $_GET['status_marital'];
$conn=mysql_connect("localhost","root","bismillah")or die("Server Failed");
mysql_select_db("anwari",$conn);
echo "No ID = $no_id <br>";
echo "Nama = $nama <br>";
echo "Jenis Kelamin = $jenis_kelamin <br>";
echo "Alamat = $alamat <br>";
echo "Status Marital = $status_marital <br>";
$sqlstr="insert into pegawai(no_id,nama,jenis_kelamin,alamat,status_marital)values('$no_id','$nama','$jenis_kelamin','$alamat','$status_marital')";
$hasil=mysql_query($sqlstr,$conn);
echo "Identitas Anda Tersimpan <br><br>";
?>
           <a href="anggota.php">KEMBALI</a>
</body>
</head>
</html>
Label: php dan mysql
0 Komentar:
Posting Komentar
Berlangganan Posting Komentar [Atom]
<< Beranda