//$connect=mysql_connect("localhost","priyo","priyo") or die ("Koneksi gagal");
$sql="SELECT NIK,Nama,Alamat,Phone,date_format(Tglmasuk,'%d-%m-%Y') as tanggal,Bagian,Jabatan,Keterangan from karyawan";
$qry=mysql_db_query("karyawan",$sql,$connect);
print "print "
NIK";
print " | Nama";
print " | Alamat";
print " | Phone";
print " | Tanggal Masuk";
print " | Bagian";
print " | Jabatan";
print " | Keterangan";
while ($row=mysql_fetch_row($qry)) { print " | ||
$row[0]";
print " | $row[1]";
print " | $row[2]";
print " | $row[3]";
print " | $row[4]";
print " | $row[5]";
print " | $row[6]";
print " | $row[7]";
print " | edit";
print " | hapus";
} print " |
?>
Tidak ada komentar:
Posting Komentar