<html>
<head>
<title>Testing Retrieve</title>
</head>
<body>
<?php
$conn = oci_connect("USER", "PASSWORD", "PATH");
$strSQL = "SELECT * FROM TB_AGENCY";
$objParse = oci_parse($conn, $strSQL);
oci_execute ($objParse,OCI_DEFAULT);
?>
<table width="900" border="1" bordercolor="#000000">
<tr>
<th width="198"><div align="center">PARTNER CODE</div></th>
<th width="198"><div align="center">AGENCY CODE</div></th>
<th width="198"><div align="center">TCONTACT DATE</div></th>
<th width="198"><div align="center">UPDATE DATE</div></th>
<th width="198"><div align="center">UPDATE TIME</div></th>
<th width="198"><div align="center">PARTNER TYPE</div></th>
</tr>
<?php
while($objResult = oci_fetch_array($objParse,OCI_BOTH))
{
?>
<tr>
<td><div align="center"><?php echo $objResult["PTNR_CODE"];?></div></td>
<td><div align="center"><?php echo $objResult["AGENCY_CODE"];?></div></td>
<td><div align="center"><?php echo $objResult["FCONTACT_CODE"];?></div></td>
<td><div align="center"><?php echo $objResult["TCONTACT_CODE"];?></div></td>
<td align="right"><div align="center"><?php echo $objResult["UPDATE_TIME"];?></div></td>
<td align="right"><div align="center"><?php echo $objResult["PTNR_TYPE"];?></div></td>
</tr>
<?php
}
?>
</table>
<?php
oci_close($conn);
?>
</body>
</html>
This post has been edited by GunnerInc: 21 February 2013 - 07:57 PM
Reason for edit:: code tags

New Topic/Question
Reply



MultiQuote







|