As much as we’d love to help you debug your PHP code, we just don’t have the resources to help everyone struggling with learning PHP. There are multiple good resources for learning PHP on the net, including Treehouse, CodeSchool and others.
You can post your code into the #dev-chat channel in our Slack Chat as there are developers who hang out there and can give you detailed feedback on your PHP. If the code is based on our code snippets, we’ll take a first pass at it, but if what you’re looking for is very custom or can’t be found quickly, we’re going to route you to #dev-chat and ask you to do some debugging of your code.
If you’re getting heavily into PHP and are trying to troubleshoot something you’ve modified, it’s time for you to learn proper debugging of PHP with XDebug. These articles might help you with setting up a proper PHP testing/debugging environment:
- Advanced Debugging with XDebug from Delicious Brains