Yes, please help to write a very simple one. Let me tell you what I am dealing with, and then tell me what I have to do.
Like I said before, the table is a single text file for that field. Now I want it to be the array. Let me give you the example of what I have right now:
name | monthly_payment
chris | 12.30
joe | 8.10
anna | 11.90
chris | 10.00
anna | 8.10
anna | 10.00
...then when I have the table like above, I have to add
the monthly payment for each person like so:
chris paid = 22.30
joe paid = 8.10
anna paid = 30.00
Ok , let's talk about what I really need:
name | monthly_payment
{chris} | 12.30
{chris, anna} | 10.00
{joe, anna} | 8.10
{anna} | 11.90
The reason for me to change the table because sometime the person have the same monthly payment and I have to put them on the same row. Note that, I will never have more than 2 people have the same payment, only 2 people have the same payment at the time. What about the result? It should be the same result like the previous result:
chris paid = 22.30
joe paid = 8.10
anna paid = 30.00
Anyway, why do I need something like this? Well, let's say it's requried. If you can help me to write something like that, please help. Thank you for your consideration and your help.
Chris