Selasa, 30 Juli 2013

PHP Indonesia - Facebook: tanya dunk master script proses hapusku kenapa ya ...

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
tanya dunk master script proses hapusku kenapa ya ...
Jul 30th 2013, 17:04, by Arista Nagato

Arista Nagato 5:04pm Jul 30
tanya dunk master script proses hapusku kenapa ya kok gak bisa jalan kok malah muncul gini kalo di jalankan
Data Tidak Ada ,Ulangi lagi

ni scriptnya
....

<?php
$index = $_GET['no_induk'];
include"koneksi.php";
//susun query
$query= "Select * from biodata where no_induk='$index'";
// eksekusi query
$hasil=mysql_query($query)or die(mysql_error());
//cek hasil
if (mysql_fetch_row($hasil)==0 )
{echo "<script>alert('Data Tidak Ada ,Ulangi Lagi');</script>";}
else
{
//susun query untuk hapus data
$query= "Delete from biodata where no_induk='$index'";
// eksekusi query
$hasil=mysql_query($query)or die(mysql_error());
if (mysql_affected_rows()>0)
{//lain lain
echo "<script>alert('Penghapusan Berhasil');</script>";}
else
{echo"Penghapusan Gagal, Coba Lagi";}
echo "<p><a href='carisiswa.php'>kembali</a>";}
?>
</body>
</html>

Adjhi Adjha 5:08pm Jul 30
kemungkinan $_GET['no_induk'] g terkirim tu gan....

Arista Nagato 5:09pm Jul 30
jadi gmn gan bingung aku

Adjhi Adjha 5:11pm Jul 30
lw q biasax pkek gni gan..

Adjhi Adjha 5:13pm Jul 30
lw q biasax pkek gni gan.. <a href='aksi.php?module=xxx&act=hapus&id=$r[no_induk]'>del</a> jadi tingal $_get[id] aj di script aksi hapusx....

Gembel Berkelas 5:24pm Jul 30
mysql_fetch_row ganti aja jd mysql_num_rows

사랑해윤아 5:42pm Jul 30
sepertinya salah dipenangkapan variable
udah yakin url?no_induk=id ??

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

Tidak ada komentar:

Posting Komentar