 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Duckout Blog: Do Funny Stuff with the Google Charts API and PHP
by Chris Cornutt March 26, 2013 @ 11:40:44
In this recent post to the Duckout blog, they show you how to hook your PHP-based (and database driven) application into the Google Charting API for chart/graph generation.
I think, whenever we see a chart in a magazine, in books or applications our brain say's to us Yeepie!!! Don't read these stupid texts or tables! Just look at the green or yellow line and hope that they are above the other lines or hope that your opinion is the biggest part of the pie¯. This saves us a lot of work and in my opinion we should concentrate on drawing beautiful colorized pie charts, instead of writing long boring articles. But the question is: ¯How do I draw these beautiful colorized pie charts? The simple answer is: you don't have to, because google will draw them for you and you just have to tell them what to draw via the google charts api.
The sample application is a "breakfast rating" tool that logs the results to a MySQL database via PDO calls. The results are then extracted and formated as JSON to be compatible with the Google Charts API data handling. Some sample Javascript is included showing how to call the Charts API with your data and get back a simple line graphing of the data from the database. You can see the application in action here for reference.
voice your opinion now!
google charts api json tutorial rating database pdo
NETTUTS.com: Building a 5 Star Rating System with jQuery, AJAX and PHP
by Chris Cornutt May 05, 2010 @ 09:09:02
On the NETTUTS.com site there's new tutorial showing you how to combine the power of PHP and jQuery to create a quick and easy star rating system for your web application.
In this tutorial, you'll learn how to build a rating system with AJAX, PHP, and jQuery. Votes will be recorded and updated in real-time with the magic of AJAX, and we'll also leverage the power of PHP so that you don't even need a database!
The Ajax portion of the script is handled by a "$.post" request made from jQuery to the PHP backend when a star is clicked. Once the message is sent to the PHP backend, the information is serialized and pushed into a text file. This method can easily be modified to work with a database too.
voice your opinion now!
tutorial rating system star ajax
Greg Bulmash's Blog: Creating A Simple Rating Script With PHP And MySQL
by Chris Cornutt 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.
voice your opinion now!
mysql rating script simple tutorial mysql rating script simple tutorial
Stoyan Stefanov's Blog: Using PEAR and AWS to keep an eye on Amazon
by Chris Cornutt January 11, 2007 @ 06:59:59
On his blog today, Stoyan Stefanov shows how to use a PEAR package - PEAR::Services_Amazon - to "keep an eye on" Amazon's stats for a book.
I wanted to have a page that shows the books I've written, together with their Amazon sales rank and the average customer rating and number of reviews. It's really easy. I took one example out of the PEAR book and slightly modified it.
The script needs to few things to get up and running, so he points out those (an AWS id, the PEAR pacakge) and the simple path the application will take to grab the information (request/response). Then it's on to the actual PHP code - all 60 lines of it, including the HTML for the output.
It makes the request with the Services_Amazon package for the given item numbers (he happened to have already) and pulls the results back, looping through them displaying sales rank, title, author, the average rating, and the number of total customer reviews - all in a handy unordered list.
voice your opinion now!
amazone pear pacakge servicesamazon salesrank reviews rating amazone pear pacakge servicesamazon salesrank reviews rating
Tiobe.com: PHP Ranks Fifth in Popularity Contest in August
by Chris Cornutt August 04, 2006 @ 06:20:08
As PHP Magazine notes today, PHP has come in fifth (again) on the TIOBE Programming Community index.
The TIOBE Programming Community index gives an indication of the popularity of programming languages. The index is updated once a month. The ratings are based on the world-wide availability of skilled engineers, courses and third party vendors.
The popular search engines Google, MSN, and Yahoo! are used to calculate the ratings. Observe that the TPC index is not about the best programming language or the language in which most lines of code have been written.
Those higher on the list are Java, C, Visual Basic, and C++, though C++ seems to be fading and Visual Basic growing by leaps and bounds. In the long term trends they record, PHP is showing a rising trend, quite a bit up from even just February of this year.
voice your opinion now!
rank fifth popularity programming language rating search engine rank fifth popularity programming language rating search engine
TechEnclave.com: First take on phpBB Olympus
by Chris Cornutt June 22, 2006 @ 06:08:30
On TechEnclave.com today, there's a new review of the latest version of phpBB, Olympus. In it, Safin take a look at the features, installation, the management setup, and much more.
Finally the much awaited PHPBB Olympus is out as a public beta. In this review i am gonna list my experiences as i test fire the new beta.
Ok starting with a bit of history. I first tried phpbb 2 years back and i didn't like it at all. Now with Olympus i reckon we have some real good competetion. It might still not face up feature to feature with vbulletin, but its no pushover either. Considering its free and considering that it enjoys the support of an extensive modding community, i see great things happening with olympus.
They cover the normal flow of a user first installing the package:
- installation (of course)
- configuration
- the user control panel
- the overview and forum management sections
- user management
- attachment control
- styling options
- maintenance/system options
- viewing the forums/threads
Quite an exhaustive list, and for each item there's a brief bit of opinion by the reviewer on how good it was accomplished and a rating (out of ten) at the bottom of each page.
voice your opinion now!
phpbb review feature list rating olympus phpbb review feature list rating olympus
php|architect: Writing an AJAX-based Visual Rating System with PHP
by Chris Cornutt June 13, 2006 @ 06:06:48
In php|architect's ART respository today, there's a new article from Marco Tabini himself about the creation of an Ajax rating system for your site.
A rating system is a great tool for any website. It serves two important purposes: first, it gives your users a way to interact with your pages-and interactivity is an important aspect of any website these days. Second, it provides you with a valuable feedback tool that you can use to gauge viewer interest in individual areas of your site. In other words... everybody wins!
He explains the concept behind the system before ever getting into any code - a visual representation of the rating users are giving a particular article/posting. With that out of the way, he gets into the HTML first, explaining how the table is laid out before giving the code to pull together the images and form one seamless one representing the correct rating. He also demonstrates the use of a "secret hash" to protect the script against abuse.
Next up, he creates the PHP/SQL backend to handle the Ajax requests coming back in from the page, and setting a cookie to protect (somewhat) against more than one vote. Finally, he gives the Javascript you'll need to create the Ajax connection and relay the JSON message back to the server on the rating the user chose.
Of course, the code is available for download as well.
voice your opinion now!
ajax visual rating system mysql cookie gd hash ajax visual rating system mysql cookie gd hash
|
Community Events
Don't see your event here? Let us know!
|