Hi Bill,
What you've got is fine (you can use $time in this way), except for this: when you use "foreach($row as $data)", you want to refer to $data, not $row, within the loop:
<!-- Is this a web server log, etc.?? -->
<!-- header -->
<h2>Log Information</h2>
<table>
<th>Remote Host</th>
<th>Initial Connect</th>
<th>Connection terminated</th>
<th>Connection length (minutes)</ht>
<?php
// db stuff goes here ...
// then
foreach ($row as $data) {
// note indices
echo "\n\t<td align=right> $data['1'] </td>";
echo "\n\t<td align=right> $data['2'] </td>";
echo "\n\t<td align=right> $data['3'] </td>";
// here was one error, you used $row instead of $data...
$time = round(($data['4']/60), 2);
echo "\n\t<td align=right> $time </td>";
}
//etc....
?>
HTH,