I have two problems...
Here is code :
<?php
// Create connection to Oracle
$conn = oci_connect("root", "admin", "//127.0.0.1/xe");
$query = 'select * from TEST_RESULTS';
$stid = oci_parse($conn, $query);
$r = oci_execute($stid);
print '</br>';
// Fetch each row in an associative array
print '<b> MONITORING SRODOWISK TESTOWYCH </br>';
print '</br>';
print '<table border="1">';
while ($row = oci_fetch_array($stid, OCI_RETURN_NULLS+OCI_ASSOC)) {
print '<tr>';
foreach ($row as $item) {print '<td>'.($item !== null ? htmlentities($item, ENT_QUOTES) : ' ').'</td>';}
print '</tr>';
}
print '</table>';
?>
on my local website , I have table :
id result1 result2 result3 resul4
- ok ok ok pass
- nok ok ok fail
- ok nok ok fail
...
1) firstly , I need add column headings, because now I do not have
2) I would like change my background( bgcolor="#FF0000" ) color in every row when result4 = fail
Please any suggestions how to best do this
thx !