To refer solely to Code not responding accordingly to the parameters passed via the browser, which you linked to in the comments.
You posted a lot of code. Too much. Had you created a short, self-contained, example to demonstrate your problem chances are you would have seen the error and been able to correct it. Using italics to highlight error messages also made the top of the question fairly difficult to read. If you look at my edit I've added more whitespace to try to clearly define what's happening. I've also removed "Thank you guys!" from the post as this is unnecessary.
I can only guess at the reasons for the downvotes as I can't speak for other voters. However, I would guess that someone downvoted either because the question is too difficult to understand or because you don't appear to have put much effort into solving the problem yourself.
I would like to emphasise that the amount of code was unnecessary. It appears as though you dumped a load of your project into a question and left someone else to solve the problem, which doesn't endear you to people.
I recognise that you may not see it that way but you're not the person answering the question. You have to look at your question as an answerer would to see whether it makes sense and you've provided the correct information. It's a skill I haven't mastered by any stretch of the imagination but there are plenty of good resources out there.
Here's a couple of the most commonly linked ones, which would be worth reading:
I have voted to close this question as too localized as the problem was simply a syntax error.