Ok, so first off I am a TOTAL noob at PHP. I know a bit of HTML and some css, but not much beyond that.
What I am trying to do is set up a website that will basically ping minecraft servers and get the number of players, maximum player count, whether its online, etc, and then let users vote a server up or down, and then the servers are listed according to their voted rank. I found a free code snippet to do the contacting the servers. Then, I found another free snippet to allow voting on different things.
The first part is working perfectly, but the second one is giving me problems. Whenever I click the vote button, it says “Cannot connect to database. Please try again.”
This is the page in question: blog.johnwetzelmedia.com/
and here is a zip file of all the files for this project.
blog.johnwetzelmedia.com/Server_tracking.rar
I know for sure I have the correct info put in for the database, host name, username, password, etc.
But, for some reason, I cant get the voting to work. Someone please let me if theyve got any ideas.