A Bit of PHP

I feel compelled to reiterate once again that I am really not a programmer, but it is so gratifying when I’m able to solve a problem with a bit of code. So, here’s the code…any ideas on what this does or what my problem was? If you’re good with PHP…