script insert
include ("connect.php");
$nama = $HTTP_POST_VARS['nama'];
$alamat = $HTTP_POST_VARS['alamat'];
$no_telepon = $HTTP_POST_VARS['no_telepon'];
$stmt = OCIParse($conn,"insert into peserta values ('','$nama','$alamat','$no_telepon')");
$s = ociexecute($stmt);
if(!$s){
echo "
PROSES INSERT DATA PESERTA GAGAL".var_dump(ocierror());
}else{
echo "
PROSES INSERT DATA PESERTA SUKSES
";
}
oci_close($conn);
?>
$nama = $HTTP_POST_VARS['nama'];
$alamat = $HTTP_POST_VARS['alamat'];
$no_telepon = $HTTP_POST_VARS['no_telepon'];
$stmt = OCIParse($conn,"insert into peserta values ('','$nama','$alamat','$no_telepon')");
$s = ociexecute($stmt);
if(!$s){
echo "
PROSES INSERT DATA PESERTA GAGAL".var_dump(ocierror());
}else{
echo "
PROSES INSERT DATA PESERTA SUKSES
";
}
oci_close($conn);
?>
Comments
Post a Comment