<?
$db1 = "(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.130.1.2)(PORT = 1521))
(CONNECT_DATA = (SID = ORCL))
)";
$c=OCILogon("логин", "пароль", $db1);
$sql=" select * from db.tariff_type tt
where tt.sap_service_id =228";
$s = OCIParse($c,$sql);
OCIExecute($s,OCI_DEFAULT);
?>
<table border="0" cellpadding="3" cellspacing="1" bgcolor="#666666">
<?php while ($row = oci_fetch_array($s, OCI_RETURN_NULLS)) : ?>
<tr>
<td bgcolor="#FFFFFF"><?php=$row[0];?></td>
<td bgcolor="#FFFFFF"><?php=$row[1];?></td>
<td bgcolor="#FFFFFF"><?php=$row[2];?></td>
<td bgcolor="#FFFFFF"><?php=$row[3];?></td>
<td bgcolor="#FFFFFF"><?php=$row[4];?></td>
</tr>
<?php endwhile;?>
</table>
<?php
OCILogoff($c);
?>