Good time of day, how to implement such a thing ?.
while($ser_row = $adb->fetch_array($sql)) { $serviceid = $ser_row['serviceid']; $servicename = $ser_row['servicename']; $autouserid = $ser_row['autouserid']; $carnomer = $ser_row['serialnumber']; $avtograf = $ser_row['avtograf']; $rastoplivo = $ser_row['rastoplivo']; $allmkad = $ser_row['allmkad']; $peregruztn = $ser_row['peregruztn'];
From the beginning, you need to remove all repetitions from $ ser_row ['serialnumber']; and then find them all $ ser_row ['allmkad']; and fold them.