A parse error means that you have not used proper syntax...meaning you typed something that is not meaningful PHP. If you could locate line 306 and paste that and a few lines above and below it, that might help.
Ultimately, if you don't know what valid PHP syntax is, you are probably going to fail badly at PHP. It's probably the most basic aspect of PHP coding.