mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2026-09-03 02:11:38 -04:00
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:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user