mirror of
https://github.com/itflow-org/itflow
synced 2026-03-04 04:44:51 +00:00
Removed , before WHERE statement Fixed Edit Client
This commit is contained in:
10
post.php
10
post.php
@@ -1427,7 +1427,7 @@ if(isset($_POST['edit_client'])){
|
|||||||
$net_terms = intval($_POST['net_terms']);
|
$net_terms = intval($_POST['net_terms']);
|
||||||
$notes = trim(strip_tags(mysqli_real_escape_string($mysqli,$_POST['notes'])));
|
$notes = trim(strip_tags(mysqli_real_escape_string($mysqli,$_POST['notes'])));
|
||||||
|
|
||||||
mysqli_query($mysqli,"UPDATE clients SET client_name = '$name', client_type = '$type', client_website = '$website', client_referral = '$referral', client_currency_code = '$currency_code', client_net_terms = $net_terms, client_notes = '$notes', WHERE client_id = $client_id AND company_id = $session_company_id");
|
mysqli_query($mysqli,"UPDATE clients SET client_name = '$name', client_type = '$type', client_website = '$website', client_referral = '$referral', client_currency_code = '$currency_code', client_net_terms = $net_terms, client_notes = '$notes' WHERE client_id = $client_id AND company_id = $session_company_id");
|
||||||
|
|
||||||
//Tags
|
//Tags
|
||||||
//Delete existing tags
|
//Delete existing tags
|
||||||
@@ -7508,7 +7508,13 @@ if(isset($_GET['export_client_pdf'])){
|
|||||||
$client_id = intval($_GET['export_client_pdf']);
|
$client_id = intval($_GET['export_client_pdf']);
|
||||||
|
|
||||||
//get records from database
|
//get records from database
|
||||||
$sql = mysqli_query($mysqli,"SELECT * FROM clients LEFT JOIN contacts ON primary_contact = contact_id LEFT JOIN locations ON primary_location = location_id WHERE client_id = $client_id AND clients.company_id = $session_company_id");
|
$sql = mysqli_query($mysqli,"SELECT * FROM clients
|
||||||
|
LEFT JOIN contacts ON primary_contact = contact_id
|
||||||
|
LEFT JOIN locations ON primary_location = location_id
|
||||||
|
WHERE client_id = $client_id
|
||||||
|
AND clients.company_id = $session_company_id
|
||||||
|
");
|
||||||
|
|
||||||
$row = mysqli_fetch_array($sql);
|
$row = mysqli_fetch_array($sql);
|
||||||
|
|
||||||
$client_name = $row['client_name'];
|
$client_name = $row['client_name'];
|
||||||
|
|||||||
Reference in New Issue
Block a user