@Guru You are an absolute genius. I had this question on other forums with full codes from other PHP files and jQuery and none of them spotted it.
Since the file was copied from a another tutorial, the final variable included some extra information that when I ECHO'd it, it only showed the string part of it. I had my head scratching for days. You are a star. The actual data contained 'string(6) " G1-9" '.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.