Question
A really tricky application
I have an aplication that registers in mysql the number of
codes a user sends. Codes from a product. the php sends to me that
number in flash. I have an object that adds every time i have 5
codes. Like a bannana. 5 codes = 1 bannana, 10 codes =2 bannana and
so on. I thought about dividing the number with 5 and write down
that next to the bannana. But the problem is when i have 13
bannanas. then i have 2 apples and a 3 more codes. if i divide i
will not get a fixed number. 😐 and i cant display that in the text
field next to the banana.
I also have a slide bar that has 5 instances. every instance coresponds to 1,2,3,4,5 codes until it's full and i display one more bannana. There i need the 'change' from that number. For exemple if i have 7 codes i need to display 1 bannana and the slidebar at 40 percent.
Can someone tell me how can i do with those numbers?
I also have a slide bar that has 5 instances. every instance coresponds to 1,2,3,4,5 codes until it's full and i display one more bannana. There i need the 'change' from that number. For exemple if i have 7 codes i need to display 1 bannana and the slidebar at 40 percent.
Can someone tell me how can i do with those numbers?