Fixed some basic php mistakes in the code.