PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
some general tips might be helpful to improve your coding (since your name implies your are new to php ).
in your php.ini there is a parameter error_reporting. Set it to E_ALL and you will see anything that php complains about. Very helpful to write "clean" code
but E_ALL is useless until you read the error/warning messages. You can either open the webserver's log (for apache this is the file error.log in the {apache_dir}/logs directory or set display_errors in php.ini to On (error messages are written to the document output stream i.e. readable in an HTML-doc). I prefer reading the log files and think display_errors=On is only advisable for development-only systems
take a look at viewtopic.php?t=3495 (of course not the only source) and choose one IDE to support you with syntax highlighting, syntax checking, autocompletion and so on
start with the very basics, like "why does anything happen at all?", "what are strings?" or "how do functions and loops work?". the first two chapters of the manual (I. Getting Started, II. Language Reference) might be good entry points
there are many, many more tips. Maybe someone else will provide some of them