Contoh Code Delete PHP


<?php
$host='localhost';
$user='root';
$pass='';

$conn=mysql_connect($host,$user,$pass);
mysql_select_db("coba",$conn)or die("gagal Konek");

$id=$_GET['id'];
$delete='delete from siswa where NISN="'.$id.'"';
$result=mysql_query($delete);
if($result)
{ header('location:Siswa_show.php'); }
echo $delete;
?>

Contoh Code Delete PHP Contoh Code Delete PHP Reviewed by Syafriansyah Muhammad on 2/27/2015 Rating: 5

Tidak ada komentar:

Diberdayakan oleh Blogger.