My advice, don't even bother with MC Codes, it's a terrible way of coding..
Just try and make some one page scripts and get functionality out of that. Start to include other files after and build up that way.
Always use up-to-date technologies like PDO, classes, interfaces and traits as well.