Freelancer:
TroyM86
Winner
SaleRank
I have completed your project, please check it at http://98.143.158.250:2104/SaleRank1.php I have tested it on a server with your version of php and mysql and it works fine. If you have any questions please don't hesitate to contact me.