looking at the code I posted, it may be a bit daunting for those with no coding experience, though should be straightforward for those who have some php.
if you think it would help, when i get time, i may spend some time walking through the process in stages, which would be more user friendly.
in the meantime, i am happy for you to post the code.