PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hi, i'm working on a site that is currently having a voting competition. There are three rounds of voting, we are currently on the second. I've come up with this code so far and it works on the test site (so it seems) but not on the live site. It's supposed to count "votesSubmitted+bonusvotesSubmitted" and display the total, then list the top ten on the home page. What is happening is it isn't ordering them from most votes down. Here's the snippit: http://pastie.org/996396
Also, I wouldn't use short tags <? as they aren't enabled on many servers and are not enabled by default anymore.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Thanks Shawn, that did it. And thanks for the heads up on the short tags. I wasn't the original developer of the site, it just got dropped on my lap. Much appreciated!!!