if for example i have this:
$pdf="select account_no,customer_no,unit_serial,pulse_channel,DATE(tran_date)as datei,floor(floor(time_to_sec(tran_date)/900)/4) as txm_hour,
(floor(time_to_sec(tran_date)/900) % 4)*15 as txm_minutes,sum(unit_qty) as total
WHERE account_no=$acn and customer_no=customer_details.account
can i do what i did in underline..
account-no is for count-transactions table looks for the same customer _details