My table t_txt1's struct is: id number(4);
review clob;
My test script is:
<?php
$conn = OCILogon("admin", "wxd");
$lob1 = OCINewDescriptor($conn,OCI_D_LO😎;
$stmt = OCIParse($conn,"select id,review into :lob1 from t_txt1");
OCIDefineByName($stmt,"REVIEW",&$lob1);
OCIExecute($stmt,OCI_DEFAULT);
print "<pre>";
while(OCIFetchInto($stmt,&$lob1,OCI_ASSOC+OCI_RESULT_CLO😎) {
print "<br>";
echo $lob1[ID]."<br>";
$aa = $lob1['REVIEW']->load();
echo $aa."<br>";
}
print "</pre>";
OCIFreeStatement($stmt);
OCILogoff($conn);
?>
But Something is wrong. You can study it and tell me the result. good lucky !