Selasa, 02 Oktober 2012

field update anggota


<html>
<head>
<title>Update Data</title>
</head>

<body>
<h1>Data User</h1>

<a href="anggota.php">+ Tambah Data</a>

<table border="1" cellpadding="5" cellspacing="0">
    <thead>
        <tr>
            <td>No_id</td>
            <td>Nama</td>
            <td>Jenis_kelamin</td>
            <td>Alamat</td>
            <td>Status_marital</td>
            <td>Hapus</td>
        </tr>
    </thead>
    <tbody>
  <?php

//membuat koneksi ke database
$conn=mysql_connect("localhost", "root", "bismillah");
mysql_select_db("anwari");  
?>
   //membuat query select
<?php
    $query = mysql_query("select * from pegawai");

    $no = 1;
    while ($data = mysql_fetch_array($query)) {
    ?>
        <tr>
            <td><?php echo $data['no_id']; ?></td>
            <td><?php echo $data['nama']; ?></td>
            <td><?php echo $data['jenis_kelamin']; ?></td>
            <td><?php echo $data['alamat']; ?></td>
            <td><?php echo $data['status_marital']; ?></td>
            <td><a href="hapus.php?nim=<?php echo $buff['nim']; ?>">Hapus</a>
        </td>
        </tr>
    <?php
        $no++;
    }
    ?>
    </tbody>
</table>
</body>
</html>

Label:

0 Komentar:

Posting Komentar

Berlangganan Posting Komentar [Atom]

<< Beranda