Hi @Cloud9
Your code seems fine, but have you done much debugging?
I can see a commented out debugging script, but you have not mentioned any results from it.
Also, you are debugging inside the loop, your first action should be to debug the $rows (outside the loop)
Thanks
E