How did you learn how to program PHP/MySQL?

Status
Not open for further replies.
I had a site a few years ago (probably 3, maybe 4 years ago, can't remember) running on just static html pages, thought **** updating it all manually every day, installed a small cms, called cute news, then every so often i'd want a new feature so i'd spend hours working out how to do the most simple thing in php. Then grafually just picked more and more up. So all self taught. Mostly by editing existing code. I always find thats the quickest way to learn any language. And most "fun". You can get immediate results, so I tend to carry on doing it, which i did, till i knew enough to start from scratch.
 


A few years ago I would outsource all of my programming (i.e. rentacoder) and out of pure frustration I decided I needed to actually learn to code myself. Much like others have already stated, trial and error worked for me... but learning the proper syntax from a good books is essential before you get in there and start playing with code. A little "reverse engineering" is porbably my best suggestion; search google for a free downloadable script that does something similar to what you'd be interested in coding and then download and dissect the code until you understand exactly how it works. Once you have the basics give yourself a small project (maybe a simple cms) to complete and of course anytime you get stuck, go to google. Debugging will be painful in the beginning, but don't give up when your code doesn't work the first time, chances are you're overlooking a small error in syntax.
 
Status
Not open for further replies.