Try convert values to string, i.e. 'TNUM' => (string)$i, 'TNAME' => (string)$row["name"], ...
It's annoying, but it must work.
🏷️ Limited Offer: 25% OFF 🏷️
First 100 purchases only — Special discount!
Use this coupon on checkout: PHPDXPJ_D1SC1N5T
Get it now