Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to let php code out excel file ?

502742Oct 24 2006 — edited Dec 31 2006
for example below shows:

<?php
$conn = oci_connect("apps","apps","prod") or die("Connect failure");
$sql = "select h.order_number,to_char(h.ordered_date,'YYYY-MM-DD HH24:MI')
from oe_order_headers_all h
where h.org_id = 82
and to_char(h.ordered_date,'YYYYMMDD') = '20061025'";
$result = oci_parse($conn,$sql);
oci_execute($result);

?>
<table border=1>
<tr>
<td>ordernum</td>
<td>orderdate</td>
</tr>
<?php
while ($rows = oci_fetch_array($result,OCI_BOTH)) {
echo "<tr>";
echo "<td>$rows[0]</td>";
echo "<td>$rows[1]</td>";

}
?>
</table>
</html>



how to make above example outputs in excel form?

who can help me?

thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 28 2007
Added on Oct 24 2006
2 comments
1,958 views