Hey Jacob, check this and see if it'll work for ya. I tried to add some comments.
<?php
session_start();
if (!isset($_SESSION['login']))
{
header('Location:http://localhost/wip/index.html');
}
$conn=odbc_connect('jascon','root','admin');
if (!$conn)
{exit("Connection Failed: " . $conn);}
$sql="SELECT * FROM user_case_data";
$rs=odbc_exec($conn,$sql);
if (!$rs)
{exit("Error in SQL");}
//exit out of php to create table
?>
<table>
<?php //go back into php to start loop
while (odbc_fetch_row($rs))
{
//exit again to fill in values
?>
<tr>
<td><?php echo odbc_result($rs,"case_num"); ?></td>
<td><?php echo odbc_result($rs,"case_outcome") ?></td>
</tr>
<?php //back in php to close out the loop
}
odbc_close($conn);
// and back out of php again to close the table
?>
</table>
<?php
session_destroy();
?>
-jeremy