Halaman Edit Calon Proses Edit Calon

A-22 Universitas Kristen Maranatha while row=mysql_fetch_rowh { username = row[0]; } ? br a href=tabel_pemilih.php?username=?php echo username;?Klik disini untuk mengeceka body html

18. Halaman Edit Calon

?php session_start; if isset_SESSION[username] {dieaccess denied.; }; ? html head titleMengedit Data Calon Ketuatitle link href=csspemilih.css type=textcss rel=stylesheet head body div class=wrapper img src=imagelogomarnat.gif alt=logom width=130 height=130 align=right img src=imagelogocomeng.jpg alt=logo width=150 height=150 align=left h1Admin Areah1 h2Website Pemilihan Calon Ketua HIMAh2 h2Computer Engineeringh2 headermarquee bgcolor=blue Fakultas Teknik Jurusan Sistem Komputer Universitas Kristen Maranathamarqueeheader br div style = font-size : 24; font-family: Arial; text-align : center ; color: black;ubMengedit Data Calon Ketuabudiv br hr br center ?php include koneksi.php; ifisset_POST[buttonsimpan] { q = SELECT FROM calon WHERE usercalon = _GET[usercalon]; hasil = mysql_queryq; baris = mysql_fetch_arrayhasil; } q = SELECT username FROM admin WHERE username = _GET[username]; h = mysql_queryq; while row=mysql_fetch_rowh A-23 Universitas Kristen Maranatha { username = row[0]; } ? form name=formtambah action=edit_proses_cal.php?username=?php echo username;? method=post onSubmit=return cekdata NRP nbspnbspnbspnbspnbspnbspnbspnbspnbsp: input name=textnrp type=text value=?php echo baris[usercalon];? size=35 maxlength=7 br br Nama nbspnbspnbspnbspnbspnbspnbsp: input name=textnama type=text value=?php echo baris[realname];? size=35 maxlength=35 br br Password nbsp: input name=textpass type=password value=?php echo baris[password];? size=35 maxlength=35 br br input type=hidden name=usercalon value=?php echo _GET[usercalon];? div style = margin-left : 240pxinput name=buttonsimpan type=submit value=Ubahdiv form br hr a href=tabel_pemilih.php?username=?php echo username;?Backa center br footer copy; 1027014 Angga Indrajayafooter div body html

19. Proses Edit Calon

html head titleProses Edittitle head body style= margin-left:auto; margin-right:auto;margin-top:250px;font-family: Arial, sans-serif; font-weight: 300; text-align:center;font-size:24px ; background-image:-moz-linear- gradient50 0, rgb242, 242, 242 100, rgb217, 217, 217 100 ?php include koneksi.php; if isset _POST[buttonsimpan] { u = UPDATE calon SET `usercalon` =_POST[textnrp], `realname` =_POST[textnama], `password` =_POST[textpass] WHERE usercalon = _POST[usercalon]; mysql_queryu or diemysql_error; A-24 Universitas Kristen Maranatha echo Data sudah diubah; } echo br ; q = SELECT username FROM admin WHERE username = _GET[username]; h = mysql_queryq; while row=mysql_fetch_rowh { username = row[0]; } ? a href=tabel_pemilih.php?username=?php echo username;?Klik disini untuk mengeceka body html

20. Halaman Lihat Calon