| ';
$db=dbconnect();
$sql="select *, CONCAT(fname, ' ', lname) AS aggregated_name from `customer` ORDER BY aggregated_name ASC";
$sql = "select fname,
lname,
CONCAT(fname, ' ', lname) AS aggregated_name,
SUBSTRING_INDEX(GROUP_CONCAT(id
ORDER BY id DESC), ',', 1) AS id
from `customer`
GROUP BY fname,
lname,
street,
title,
department,
city,
state,
zip,
phone,
mobile,
email,
fax,
status,
step,
product,
date,
baseunit,
proj_desc,
amount,
days_to_ship,
amount_2,
conditions,
payment_terms,
comments,
ordered,
callback,
company,
request,
saved_step,
add2,
city2,
state2,
zip2,
email2,
phone2,
mobile2,
fax2,
is_deleted,
interested_in
ORDER BY aggregated_name ASC
";
$rst=mysqli_query($db,$sql);
echo '';
if(!empty($postFlag)){
echo ' Delete this Customer';
//echo ' New Inquiry to this Customer';
}
echo ' |
';
$chosenScript = '(function( $ ) {
$.widget( "ui.combobox", {
_create: function() {
var self = this,
select = this.element,
selected = select.children( ":selected" ),
value = selected.val() && (selected.text().length > 1) ? selected.text() : "";
var input = this.input = $( "