News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Greg Bulmash's Blog:
Creating A Simple Rating Script With PHP And MySQL
April 26, 2007 @ 12:03:00

Sometimes, when you're building an application, simpler is better. At least, that's how Greg Bulmash approached it in his new post about creating a simple rating script for your site with PHP and MySQL.

There are lots of pre-packaged scripts out there to do almost anything you want, but in my experience a lot of them either do too much or don't do enough. Finding that Goldilocks style of "just right" takes a lot of searching and experimenting, or just plain hacking of existing scripts. But for simple functions, writing your own script that does exactly what you want can often be quicker and more satisfying.

He goes through what a rating system is and can be used for before getting to the code (as well as other things that could be tacked on at the end to make it a bit more complex). Then, it's on to the code - first the database layout, then the script to store the rating the visitor gave the item, and the script that shows the averaged results.

0 comments voice your opinion now!
mysql rating script simple tutorial mysql rating script simple tutorial


blog comments powered by Disqus

Similar Posts

Vid Luther's Blog: Changing MySQL storage engine for one table in your Propel/Symfony project

Gonzalo Ayuso's Blog: Live video streaming with PHP

DevShed: Developing an Extensible Template Processor in PHP 5 (Part 1)

Jonnay\'s Blog: Introducing BunnyRegex - easy regular expressions, and mini-languages inside of PHP.

DevShed: Completing a Search Engine with MySQL and PHP 5


Community Events

Don't see your event here?
Let us know!


series library introduction psr7 video opinion community framework conference laravel5 api podcast interview release unittest development extension language laravel voicesoftheelephpant

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework