News Feed
Jobs Feed
Sections




News Archive
feed this:

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

NETTUTS.com:
Building a 5 Star Rating System with jQuery, AJAX and PHP
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.

0 comments voice your opinion now!
tutorial rating system star ajax


PHP-GTK Community Site:
Merry Christmas (A Holiday Widget)
December 21, 2006 @ 14:25:10

T'is the season for snow and twinkling lights, and the PHP-GTK Community site has taken this to heart with their latest tutorial posted today showing the creation of a Drawing area with stars and blinking lights.

They start with an overview of the mini-project (three different parts) and quickly get into the code.

First it's the abstract class Object, then the BasicStar that extends our object (complete with the method for drawing the dots), and finally the "Christmas widget" that they all get pushed into. The result is a small window that has flashing "lights" and will run until you shut it off. Happy holidays!

1 comment voice your opinion now!
holiday twinkle star phpgtk widget holiday twinkle star phpgtk widget


Pádraic Brady's Blog:
Extending the Mapper Stars and Planets
October 23, 2006 @ 14:17:00

Pádraic Brady is back today with another update on the game he's working on and his latest addition - the stars and planets ("bodies").

Planets and Stars ("Bodies") form the central hub around which the majority of a player's activity will center. This planning document addresses the generation and mapping of these entities, and not their individual contents, facilities or uses.

He breaks it down into a few steps:

  • Laying a Foundation
  • Adding Stars
  • Skeleton Map_Star Interfaces
  • Implementing the Map_Star Interfaces
  • Position Random
  • Generate Simple
  • Conclusion
The end result is a system for positioning stars and providing all of the star's data to the user.

0 comments voice your opinion now!
game star planet bodies tutorial game star planet bodies tutorial



Community Events











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


component support introduction podcast security hhvm code unittest install facebook overview release framework symfony2 composer hack package language application opinion

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