Kamis, 27 Juni 2013

misi para sesepuh phpemm bagaimana ya cara memang...

Oh Php 8:17am Jun 27
misi para sesepuh php
emm bagaimana ya cara memanggil link delet.php. dalam sebuah perintah delet.
soorcecode saya <
INI YANG TERDAPAT DALAM TAMPIL
<td><a href="update.php">Update</a> -<a href="delet.php"><img src="./gambar/delete-big.jpg" width="38" height="29" /></a></a></td>
>
dan
<
INI YANG TERDAPAT DALAM FILE DELET
<?php
echo 'jsahdcjkfs';
if(isset($_GET['action']) && $_GET['action']=="delete"){
$ids = $_GET['ids'];
$test = mysql_query("delete from peta where ids='$ids'");
if(mysql_affected_rows() == 1){ //jika jumlah baris data yang dikenai operasi delete == 1
echo '{"status":"1"}';
}else{
echo '{"status":"0"}';
}
echo("<script> location:'index.php?p=tampil'</script> ");
}
?>
>

Oh Php 27 Jun, 2013


-
Source: http://www.facebook.com/groups/35688476100/?id=10151720887066101
--
Manage subscription | Powered by rssforward.com

Tidak ada komentar:

Posting Komentar