Friday, May 23, 2008

script delete

include ("connect.php");
$id_peserta = $HTTP_GET_VARS['id_peserta'];
$hapus = OCIParse($conn,"delete from peserta where id_peserta='$id_peserta'");
$s = ociexecute($hapus);
OCICommit($conn);
if(!$s){
echo "PROSES HAPUS DATA GAGAL".var_dump(ocierror());
}else{
echo "PROSES HAPUS DATA BERHASIL";
}
oci_close($conn);
?>

No comments:

Post a Comment