26579Getting averages in PHPhttp://www.php-scripts.com/php_diary/122499.php3Now that we have a database of ratings for each day (well assuming you are rating each diary entry that is) we can open and read that database and dynamically display results. First we need to know how to get an average. To do that we need two pieces of data: the accumulated total of all ratings and the total number of votes. Let's look at the PHP code to get an averagePHP > Tips and Tutorials > MiscellaneousOct 16, 2006
Sit back, relax, and imagine this. You run a huge international movie database site. And, your database software is MySQL. You want visitors of your site to be able to rate movies, so that you can rank the movies. Here's how to get started...
One of the frequent problems is defining visitor?s screen resolution using JavaScript tools and passing this data to PHP-script. The following script provides solution for this problem:
The Java extension is an extremely exciting tool. By learning how to use this module, you can extend PHP by the power of all available Java classes. To show you the basics of the Java extension, this article will cover installation and a few code examples of using PHP and Java together.
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.