Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Error : Using DBMS_ALERT
My goal is to notify automatically when ths table is inserted on my
web_page written in PHP. (PHP and Oracle9)
When I open this web_page it must run infinitely untile to to another
web_page URL.
So I made this function with PL/SQL function to use DBMS_ALERT.
I'm so poor for Oracle. so with many error occurs... --;;;;;;
Could you help me Please what is a problem??
if alert_status =1
then
return 1;
else
return 0;
end if;
DBMS_ALERT.REMOVE('xyz_insert');
end change_xyz_f;
/
4. on my web-page written in PHP
<?
$connection_oracle = OCILogon("xxxxx","xxxxxx");
$statement_oracle = OCIParse($connection_oracle, "BEGIN :s :=
change_xyz_f(); END;");
$statement_oracle = OCIParse($connection_oracle, $signal);
OCIBindByName($statement_oracle, ":s", $s, 32); OCIExecute($statement_oracle, OCI_DEFAULT); OCIFreeStatement($statement_oracle); OCILogOff($connection_oracle);
if ( $s == 1)
echo "Table is changed!";
else
echo "Table is Not changed!";
I make this PL/SQL function to use DBMS_ALERT.
But many errors.
Could you help me??
if alert_status =1
then
return 1;
else
return 0;
end if;
DBMS_ALERT.REMOVE('xyz_insert');
end change_xyz_f;
/
4. on my web-page written in PHP
<?
$connection_oracle = OCILogon("xxxxx","xxxxxx");
$statement_oracle = OCIParse($connection_oracle, "BEGIN :s :=
change_xyz_f(); END;");
$statement_oracle = OCIParse($connection_oracle, $signal);
OCIBindByName($statement_oracle, ":s", $s, 32); OCIExecute($statement_oracle, OCI_DEFAULT); OCIFreeStatement($statement_oracle); OCILogOff($connection_oracle);
if ( $s == 1)
echo "Table is changed!";
else
echo "Table is Not changed!";
?>
Received on Fri Aug 29 2003 - 03:52:53 CDT
![]() |
![]() |