@@ -67,7 +67,7 @@ |
||
| 67 | 67 | </tr> |
| 68 | 68 | |
| 69 | 69 | <?php // Loop through all of the results from the dataset ?> |
| 70 | - <?php foreach($results as $row) { ?> |
|
| 70 | + <?php foreach ($results as $row) { ?> |
|
| 71 | 71 | <tr> |
| 72 | 72 | <?php $timestamp = new DateTime($row["event_clearance_date"]); ?> |
| 73 | 73 | <td><?= $timestamp->format('Y-m-d h:ia') ?></td> |
@@ -37,7 +37,9 @@ discard block |
||
| 37 | 37 | <body> |
| 38 | 38 | <h1>Seattle Police Department 911 Incident Response</h1> |
| 39 | 39 | |
| 40 | - <?php if (!$postBack) { ?> |
|
| 40 | + <?php if (!$postBack) |
|
| 41 | +{ |
|
| 42 | +?> |
|
| 41 | 43 | <form method="POST"> |
| 42 | 44 | <p>Query for all of the Seattle Fire 911 Calls calls within 500 meters of the Socrata offices in Seattle:</p> |
| 43 | 45 | <p>Try 47.59815, -122.334540 with a range of 500 meters</p> |
@@ -56,7 +58,10 @@ discard block |
||
| 56 | 58 | |
| 57 | 59 | <input type="submit" value="Submit"/> |
| 58 | 60 | </form> |
| 59 | - <?php } else { ?> |
|
| 61 | + <?php } |
|
| 62 | +else |
|
| 63 | +{ |
|
| 64 | +?> |
|
| 60 | 65 | <h2>Results</h2> |
| 61 | 66 | |
| 62 | 67 | <?php // Create a table for our actual data ?> |
@@ -67,7 +72,9 @@ discard block |
||
| 67 | 72 | </tr> |
| 68 | 73 | |
| 69 | 74 | <?php // Loop through all of the results from the dataset ?> |
| 70 | - <?php foreach($results as $row) { ?> |
|
| 75 | + <?php foreach($results as $row) |
|
| 76 | +{ |
|
| 77 | +?> |
|
| 71 | 78 | <tr> |
| 72 | 79 | <?php $timestamp = new DateTime($row["event_clearance_date"]); ?> |
| 73 | 80 | <td><?= $timestamp->format('Y-m-d h:ia') ?></td> |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | /** |
| 21 | 21 | * The ascending clause Socrata expects |
| 22 | 22 | */ |
| 23 | - const ASC = 'ASC'; |
|
| 23 | + const ASC = 'ASC'; |
|
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * The descending clause Socrata expects |