I'm hoping some one will know where I've gone wrong with the following.
[PHP]<?php
putenv("TNS_ADM IN=/u1/oracle/Produdcts/shu10g/network/admin");
$con = OCIlogon("Usern ame","Password" ,"shu10g");
$query "Begin p_room_content( 1,1,:var_room_i d, :var_fixture_id , :var_fixture_de scription); End; ";
$stmt = OCIParse($con, $query) or die ('Can not parse query');
OCIBindByName($ stmt,":var_room _id", &$room_id,4) or die ('Cannot bind variable');
OCIBindByName($ stmt,":var_fixt ure_id", &$fixture_id ,4) or die ('Can not bind variable');
OCIBindByName($ stmt,":var_fixt ure_description ", &$fixture_descr iption,25) or die ('Can not bind variable');
OCIExecute($stm t) or die ('Cannot Execute statement');
OCIFreeStatemen t($stmt);
OCILogoff($con) ;
Echo "$room_id $fixture_id $fixture_descri ption ";
?>[/PHP]
[PHP]<?php
putenv("TNS_ADM IN=/u1/oracle/Produdcts/shu10g/network/admin");
$con = OCIlogon("Usern ame","Password" ,"shu10g");
$query "Begin p_room_content( 1,1,:var_room_i d, :var_fixture_id , :var_fixture_de scription); End; ";
$stmt = OCIParse($con, $query) or die ('Can not parse query');
OCIBindByName($ stmt,":var_room _id", &$room_id,4) or die ('Cannot bind variable');
OCIBindByName($ stmt,":var_fixt ure_id", &$fixture_id ,4) or die ('Can not bind variable');
OCIBindByName($ stmt,":var_fixt ure_description ", &$fixture_descr iption,25) or die ('Can not bind variable');
OCIExecute($stm t) or die ('Cannot Execute statement');
OCIFreeStatemen t($stmt);
OCILogoff($con) ;
Echo "$room_id $fixture_id $fixture_descri ption ";
?>[/PHP]
Comment