Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- if(isset($_REQUEST['edit'])){
- include('../db/config.php');
- $ip=$_SERVER['REMOTE_ADDR'];
- $tgl=date('d/m/y H:i:s');
- $nama=$_REQUEST['nama'];
- $email=$_REQUEST['email'];
- $tujuan=$_REQUEST['no_tujuan'];
- $pesan=$_REQUEST['pesan'];
- $update=mysql_query("update ujian set ip = '$ip', tgl = '$tgl', nama = '$nama', email = '$email', no_tujuan = '$tujuan', pesan = '$pesan' where id_pesan = '$_REQUEST[id_pesan]'");
- if($update):
- ?>
- <script language="javascript">
- alert('data pesan anda berhasil kami update dari database kami');
- document.location="../";
- </script>
- <?end;else:?>
- <script>
- alert('gagal mengupdate pesan anda periksa masukan');
- window.back();
- </script>
- <?endif;}?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement