Removed unnessesary line from add_ticket that was meant for edit ticket was casuing php to throw undefined client_id var

This commit is contained in:
johnny@pittpc.com 2021-02-02 21:16:21 -05:00
parent 089016265c
commit a3aae0d955
2 changed files with 5 additions and 5 deletions

View File

@ -27,7 +27,7 @@
$client_id = $row['client_id'];
$client_name = $row['client_name'];
?>
<option <?php if($_GET['client_id'] == $client_id) { echo "selected"; } ?> value="<?php echo "$client_id"; ?>"><?php echo "$client_name"; ?></option>
<option value="<?php echo $client_id; ?>"><?php echo "$client_name"; ?></option>
<?php
}

View File

@ -1,9 +1,5 @@
<?php include("header.php");
//Rebuild URL
$url_query_strings_sb = http_build_query(array_merge($_GET,array('sb' => $sb, 'o' => $o)));
//Paging
if(isset($_GET['p'])){
$p = intval($_GET['p']);
@ -40,6 +36,10 @@
$disp = "DESC";
}
//Rebuild URL
$url_query_strings_sb = http_build_query(array_merge($_GET,array('sb' => $sb, 'o' => $o)));
$sql = mysqli_query($mysqli,"SELECT SQL_CALC_FOUND_ROWS * FROM users, permissions
WHERE users.user_id = permissions.user_id
AND (name LIKE '%$q%' OR email LIKE '%$q%')