If I replace the while loop with custom values and variables, I can get the data pass through, however with while loop just can't and I wonder why? I've tested the while loop separately with hardcoded json value and it does return values from the database so cannot say the php is broken!If I replace the while loop with custom values