riteshrm Posted April 4, 2006 Share Posted April 4, 2006 I have CLOB as one of my table field types. When I try to print the value, it gives something like Resource id #6. Someone help me out... Quote Link to comment https://forums.phpfreaks.com/topic/6559-problem-with-clob/ Share on other sites More sharing options...
svetbg Posted September 18, 2006 Share Posted September 18, 2006 $sql = "SELECT message FROM watchdog"; // message is of CLOB type$parsed = oci_parse($c, $sql);I. if (oci_execute($parsed)) { $numrows = oci_fetch_all($parsed, $tmpArr, 0, 1000); for ($i=0; $i<$numrows; $i++) { echo $tmpArr["MESSAGE"][$i] . "\n"; }}II.if (oci_execute($parsed)) { while ($row = oci_fetch_array($parsed, OCI_ASSOC)) { $result = $row["MESSAGE"]; echo $result->load() . "\n"; }} Quote Link to comment https://forums.phpfreaks.com/topic/6559-problem-with-clob/#findComment-93845 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.