I think what Damien is trying to say is fix one problem at a time, and research thoroughly before asking questions, that's the best way to learn.
You seem to jumping around on wild tangents without completely eliminating the root cause of each issue.
Start from the beginning and work your way through it, that is always the best way, jumping steps along the way only compounds your problems.