Printable View
[Post Removed]
Have you stuck in some checks at different points to see the values of the variables so you can verify if it is grabbing the data or not and to see where the problem lies?