Hi guys...
I have a trouble with my delete page.. here are my codes..
<?php
include("enter.php");
$dbjpu_jenis_jentera=$_GET['jpu_jenis_jentera'];
//if(isset($_GET['bil'])){ $dbstaf_bil = $_GET['bil']; }
$sql="DELETE FROM jpuma_jkkp2013 WHERE jpu_jenis_jentera='".$dbjpu_jenis_jentera."'";
$result=@mysql_query($sql);
if($result){
echo "<center>Please wait a few second.<br>The data was deleted from database...<meta http-equiv='refresh' content='3;url=jpuma_jkkp2013.php'>";
//echo "<p>";
//echo "";
}
else {
echo "ERROR";
}
?>
<?php
include("exit.php");
?>
the problem is after i click the "delete button", all the data in my tables are all gone..it deleted all my data..why is that problem occur...can someone help me...