mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Top Search bar now searches clients, added events and trips to client details, started adding trims to trim whitespace on beginning and end of some inputs
This commit is contained in:
@@ -96,6 +96,12 @@ if(isset($_GET['client_id'])){
|
||||
$row = mysqli_fetch_assoc(mysqli_query($mysqli,"SELECT COUNT('note_id') AS num FROM notes WHERE client_id = $client_id"));
|
||||
$num_notes = $row['num'];
|
||||
|
||||
$row = mysqli_fetch_assoc(mysqli_query($mysqli,"SELECT COUNT('event_id') AS num FROM events WHERE client_id = $client_id"));
|
||||
$num_events = $row['num'];
|
||||
|
||||
$row = mysqli_fetch_assoc(mysqli_query($mysqli,"SELECT COUNT('trip_id') AS num FROM trips WHERE client_id = $client_id"));
|
||||
$num_trips = $row['num'];
|
||||
|
||||
?>
|
||||
|
||||
<?php include("header.php"); ?>
|
||||
|
||||
Reference in New Issue
Block a user