summaryrefslogtreecommitdiff
path: root/dockets.php
diff options
context:
space:
mode:
authorNathan Kinkade <nath@nkinka.de>2013-11-14 22:03:26 +0000
committerNathan Kinkade <nath@nkinka.de>2013-11-14 22:03:26 +0000
commitdcbf0e118f7c4350dbaefb86026f4262ae6accfd (patch)
treee8ae0794bd491ea738c943bce4b33840fea9d8ed /dockets.php
parente4e405d6a6b48dd90d38255834d745f66acdc877 (diff)
Added a page for AKAs and also cleaned up how court_case_no is found on various pages.
Diffstat (limited to 'dockets.php')
-rw-r--r--dockets.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/dockets.php b/dockets.php
index 6805a3a..9edb3cc 100644
--- a/dockets.php
+++ b/dockets.php
@@ -26,12 +26,7 @@ echo <<<HTML
HTML;
-$st = $dbh->prepare("SELECT court_case_no FROM cases WHERE id = '{$_GET['case_id']}'");
-if ( $st->execute() ) {
- while ( $row = $st->fetch(PDO::FETCH_ASSOC) ) {
- echo "<h3>Dockets for case <em>{$row['court_case_no']}</h3>";
- }
-}
+echo "<h3>Dockets for case <em>{$_GET['case_no']}</h3>";
$st = $dbh->prepare("SELECT * FROM dockets WHERE case_id = '{$_GET['case_id']}'");
if ( $st->execute() ) {
@@ -39,7 +34,6 @@ if ( $st->execute() ) {
while ( $row = $st->fetch(PDO::FETCH_ASSOC) ) {
$alt = $alt ? '' : 'alt';
echo " <tr class='$alt'>\n";
- echo " <tr>\n";
foreach ( $row as $field ) {
echo " <td>$field</td>\n";
}