Ajax and while loop

Job ID: 31801841

Budget: $10 – $11 USD

HI,
I want to fix this and get the correct ID and Code values from spesific button within while loop

As of now, its always posting the latest value even if I click on spesific button.

test files attached.
Related categories: PHP JavaScript AJAX jQuery / Prototype