Minggu, 03 November 2013

PHP Indonesia - Facebook: Saat aku indup nama sih berhasil disimpan kemudia...

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/ 
Join Delanceyplace

Sign up to receive a free quote from a non fiction book every weekday.
From our sponsors
Saat aku indup nama sih berhasil disimpan kemudia...
Nov 3rd 2013, 15:56, by Puput Meylana Agustine

Puput Meylana Agustine 3:56pm Nov 3
Saat aku indup nama sih berhasil disimpan kemudian aku hapus juga sudah bisa, tgapi setelh aku edit kok object not found siiih , tapi datnya teredit..

Apa yaa masslhnnya ??

Randy Square PantsDarker 4:00pm Nov 3
gamabr ma scripnya di upload juga dong mbak, biar orang gk bingung

Puput Meylana Agustine 4:00pm Nov 3
bntr

Shoulieheinds 4:01pm Nov 3
Nah.. btul tuh, upload gmbarnya dulu.. Biar pass analisnya..

Puput Meylana Agustine 4:02pm Nov 3
ini, setelah aku edit kok masuk ksni yaa tapi aku liht di tabel edit tadi yang sudah terganti dengn yg bru

Randy Square PantsDarker 4:04pm Nov 3
coba dicek lagi untuk linknya, udah pas belum menuju ke form editnya...

Shoulieheinds 4:05pm Nov 3
Ini PHP-nya udah OOP atau belum ?

Puput Meylana Agustine 4:05pm Nov 3
ini scripku

Puput Meylana Agustine 4:06pm Nov 3
Ini script editnya

<?php
include"../../lib/koneksi.php";
$kd_edit=isset($_GET['kd_edit'])? $_GET['kd_edit']:"";
$queryedit="select * from tb_kategori where kd_kategori='$kd_edit'";
$hasil=mysql_query($queryedit) or die (mysql_error());
while($temu=mysql_fetch_array($hasil))
{
?>
<body bgcolor="#33ffff">
<center>
<form method="post" action="?hal=editkategori&aksi=1">

<table>
<tr>
<td>Kode Kategori</td>
<td>:</td>
<td><input type="text" name="kd_kategori" value="<?=$temu['kd_kategori']?>"></td></tr>
<tr>
<td>Nama Kategori</td>
<td>:</td>
<td><input type="text" name="nama_kategori" value="<?=$temu['nama_kategori']?>"></td></tr>
<tr>
<td>Parent</td>
<td>:</td>
<td><input type="text" name="parent" value="<?=$temu['parent']?>"></td></tr>
<tr>
</table>
<td><input type="submit" name="proses" value="proses"><td>
<input type="reset" name="reset" value="Cancel">
</form>
<?php
}
?>

<?php

if (isset($_POST['proses'])) {
$kd_kategori=isset($_POST['kd_kategori'])?$_POST['kd_kategori']:"";
$nama_kategori=isset($_POST['nama_kategori'])?$_POST['nama_kategori']:"";
$parent=isset($_POST['parent'])?$_POST['parent']:"";

$queryedit="update tb_kategori set nama_kategori='$nama_kategori',parent='$parent' where kd_kategori='$kd_kategori'";
mysql_query($queryedit) or die (mysql_error());
?>
<script> alert('Update Berhasil Alhamdulilah yaaaa......!!! ');
location.href="index.php?hal=formkategori";
</script>
<?php

}
?>

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