Selasa, 29 Oktober 2013

PHP Indonesia - Facebook: gan mau tanya , cara menampilin data form gimana ...

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/ 
Compare Hotels

Find great prices for amazing hotels wherever your next destination may be. It's simple to search 100+ sites at once!
From our sponsors
gan mau tanya , cara menampilin data form gimana ...
Oct 28th 2013, 13:27, by Mucharom

Mucharom 1:27pm Oct 28
gan mau tanya , cara menampilin data form gimana ?
ini script kok gak bisa update data ,
<?php
error_reporting(0);
include"connect.php";
$id_kategori= $_GET['id_kategori'];
$sql= "SELECT * FROM kategori where id_kategori=$id_kategori;";
$query=mysql_query($sql);
while ($hasil=mysql_fetch_array($query)){
?>

<form id="kategori" action="./Menu_manager/proses_update_kategori.php" method="post"><fieldset>
<legend align="center">Update Data Kategori</legend><table width="375" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<th colspan="2" scope="col"><input name="id_kategori" type="hidden" id="id_kategori" value="<?php echo $hasil['id_kategori'];?>" /></th>
</tr>
<tr>
<th width="179" scope="row"> KATEGORI</th>
<td width="196"><label for="nama_kategori"></label>
<input name="nama_kategori" type="text" id="nama_kategori" value="<?php echo $hasil['nama_kategori'];?>" />
</td>
</tr>
<tr>
<th scope="row">DESKRIPSI </th>
<td><label for="descty"></label>
<textarea name="descty" id="descty" rows="5">

</textarea></td>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<td>
<input type="submit" name="Update" id="Update" value="Update" />
<input type="reset" name="hapus" id="hapus" value="Reset" />
</label></td>
</tr>
</table>
<?php } ?>

</fieldset></form>

Fiqi Arifianto 1:31pm Oct 28
$sql= "SELECT * FROM kategori where id_kategori=$id_kategori;";

coba dah di cek yang itu
$sql= "SELECT * FROM kategori where id_kategori='$id_kategori'";

Mucharom 1:35pm Oct 28
gan hasil nya formnya update gak bisa muncul

Fiqi Arifianto 1:45pm Oct 28
coba ya

kalo eror jangan putus asa.

<?php
error_reporting(0);
include"connect.php";
$id_kategori= $_GET['id_kategori'];
$query=mysql_query("SELECT * FROM kategori where id_kategori='$id_kategori' ");
while($hasil=mysql_fetch_array($query)){
?>

<form id="kategori" action="./Menu_manager/proses_update_kategori.php" method="post"><fieldset>
<legend align="center">Update Data Kategori</legend><table width="375" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<th colspan="2" scope="col"><input name="id_kategori" type="hidden" id="id_kategori" value="<?php echo $hasil['id_kategori'];?>" /></th>
</tr>
<tr>
<th width="179" scope="row"> KATEGORI</th>
<td width="196"><label for="nama_kategori"></label>
<input name="nama_kategori" type="text" id="nama_kategori" value="<?php echo $hasil['nama_kategori'];?>" />
</td>
</tr>
<tr>
<th scope="row">DESKRIPSI </th>
<td><label for="descty"></label>
<textarea name="descty" id="descty" rows="5">

</textarea></td>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<td>
<input type="submit" name="Update" id="Update" value="Update" />
<input type="reset" name="hapus" id="hapus" value="Reset" />
</label></td>
</tr>
</table>
</fieldset></form>
<?php } ?>

Fiqi Arifianto 1:47pm Oct 28
owh ya, di urlnya emang pake spasi ya?

Fiqi Arifianto 1:51pm Oct 28
localhost/dxtrans/acces_administrator/update_kategori.php?id_kategori%20=%201

Mucharom 1:56pm Oct 28
OKEY mas , lagi bikin script yang lain nya dulu mas

Gunawan Mujur Wibisono 2:25pm Oct 28
BIKIN SCRIPTNYA DI PASTEBIN!!!1

Zlumber Jay 10:21am Oct 29
gunakan SELECT dan buat UPDATE juga

Gembel Berkelas 10:44am Oct 29
kalo msih belum siap publish, error reporting jgn d set 0, biar jelas

Mucharom 2:58pm Oct 29
soalnya ada yang plugin jquery form , kayaknya itu yang bikin maslah gak tampil formnya ,,

Gunawan Mujur Wibisono 3:07pm Oct 29
okay lah

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