reto: Stored Procedure aufrufen

Beitrag lesen

<?php
// by webmaster@remoterealty.com
$sth = OCIParse ( $dbh, "begin sp_newaddress( :address_id, '$firstname',
'$lastname', '$company', '$address1', '$address2', '$city', '$state',
'$postalcode', '$country', :error_code );end;" );

// This calls stored procedure sp_newaddress, with :address_id being an
// in/out variable and :error_code being an out variable.
// Then you do the binding:

OCIBindByName ( $sth, ":address_id", $addr_id, 10 );
   OCIBindByName ( $sth, ":error_code", $errorcode, 10 );
   OCIExecute ( $sth );

?>

Ich habe dieses Beispiel gefunden. Aber was müsste ich nun in meinem Fall wo eintragen? Die Umsetzung verstehe ich nicht ganz. Ich möchte nämlich mit PHP die gleiche Ausgabe wie mit dem ORACLE Script erzeugen.