Selasa, 13 Agustus 2013

PHP Indonesia - Facebook: [ask] agan2 saya script saya kaya gini tapi datany...

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/ 
[ask] agan2 saya script saya kaya gini tapi datany...
Aug 14th 2013, 06:50, by Queinsha Bee Lily

Queinsha Bee Lily 6:50am Aug 14
[ask]
agan2 saya script saya kaya gini tapi datanya ga bisa diubah,,
$profil = $_POST['profil'];
$alamat = $_POST['alamat'];
$nama = $_POST['nama'];
$email = $_POST['email'];
$telpon = $_POST['telpon'];
$nilai = $_POST['nilai'];
$user_id = $_POST['user_id'];
$user_psw = $_POST['user_psw'];
$idubah= $_GET['idubah'];

$sql ="UPDATE anggota SET
nama='$nama',
alamat='$alamat',
profil='$profil',
email='$email',
telpon='$telpon',
nilai='$nilai',
user_id='$user_id',
user_psw='$user_psw'
WHERE id_daftar='$idubah'";

$query=mysql_query($sql) or die("<script type='text/javascript'>alert('Data gagal Diubah');</script>");
if($query){
echo"<script type='text/javascript'>alert('Data Berhasil Diubah');document.location='?admin=anggota/anggotatampil';</script>";
}

>> yang jadi masalah datanya ga bisa di update,, tetep data awal.. mohon pencerahannya,,

EL-Greshard 6:55am Aug 14
coba di echo $sql <- nya isi dari masing2 variabel apa.. dah benner atau gk..

EL-Greshard 6:55am Aug 14
klw dah benner, coba lihat koneksi ke dbnya dah di open blom..

Ahmad Afandi 6:57am Aug 14
cek query sqlnya lebih dahulu seperti kata agan diatas

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