More enhancements in regards to #62.

* Now shows name with link to individual history for folk who never had an transactions, as well as who have

* Link from individual history back to transaction_log with max results count.
This commit is contained in:
Jonathan Rosenbaum
2018-05-13 18:51:00 +00:00
parent 78102f3600
commit 940b6c52b3
3 changed files with 47 additions and 4 deletions
+10
View File
@@ -129,5 +129,15 @@ $handler->start();
echo json_encode($result);
} // return everyone
// Latest transaction_id
if (isset($_POST['record_count'])) {
$query = 'SELECT MAX(transaction_id) AS record_count FROM transaction_log;';
$sql = mysql_query($query, $YBDB) or die(mysql_error());
$result = mysql_fetch_assoc($sql);
echo json_encode($result);
}
?>