If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > PHP > PHP +DB XML Extender problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-26-03, 13:30
harrier harrier is offline
Registered User
 
Join Date: Sep 2003
Posts: 2
PHP +DB XML Extender problem

I have problem with collections method to decompose xml dokument.

In command line I write:
db2 CALL db2xml.dxxShredXML(db2xml.XMLCLOBFromFile 'c:/test/2/karta_xcollection.dad'),db2xml.XMLCLOBFromFile('c:/test/2/rozpoznanie.xml'),?,?)

and this work ok but in php script i have problem
I make query:

$query = "CALL db2xml.dxxShredXML(db2xml.XMLCLOBFromFile('c://test//2//karta_xcollection.dad'),db2xml.XMLCLOBFromFile('c://test//2//rozpoznanie.xml'),?,?)";

and run

$result_prep = odbc_prepare($dbconn,$query);
$par = array("$returncode","$returnmsg");
$result = odbc_execute($result_prep, $par);

if ($result == 0) {
echo("Err<br>");
$sqlerror = odbc_errormsg($dbconn);
echo("err:<".$sqlerror."><br>");
}
else {
echo("Succes.<br>");

and.....
no errors and nothing happend , no data in database.
What is wrong? How I can write script to make decomposig xml document into database in PHP. HELP
p.s. sorry but my english is not very well
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On