hello.i need help form you all. i am beginner in php and my english is not good..
my problem is when the pop up message proceed delete, although i click cancel. my data is delete ? this is my coding
<?php session_start();
$noC = $_REQUEST['noC'];
include("db_connect.php");
mysql_select_db($database_localhost, $conn)or trigger_error(mysql_error(),E_USER_ERROR);
$sql="DELETE FROM cek1a WHERE noC='".$noC."'";
mysql_select_db($database_localhost, $conn);
$Result1 = mysql_query($sql, $conn);
if($Result1){
echo "<script>confirm('proced delete?')</script>";
echo '<META HTTP-EQUIV="Refresh" CONTENT="0.01; URL=p1f3(delete).php">';
}
else
echo "<script>alert('Sorry, the data you entered was failed to save.')</script>";
?>
i hope you all can help me.. thank you