Average

How to Get the Average of One Column in MySQL Database using PHP

This tutorial tackles on how to get the average of one column in mysql database using PHP. There are instance that we wanted to get the average of one column for reporting purposes like average sales, expenses etc. Normally, we get the sum of the column then we divide it by number of rows but actually there is a sql function that determines the average of one column.

How To Get Average Of Five Numbers Using JavaScript

In this tutorial, we are going to learn on How To Get Average Of Five Numbers Using JavaScript. AngularJS is a JavaScript framework. It can extend the HTML tag with the new attributes. It is perfect to use for SPAs or (Single Page Applications). Today, this is a simple program using AngularJS that the user will input the five (5) value numbers that our program will compute the average of five (5) numbers automatically.

PHP/MySQLi Creating a Forum - Part 5 - Adding Ratings

Introduction: This tutorial will be continuing my series of creating a forum in PHP/MySQLi/HTML. In this fifth part, we will be adding ratings to the threads, I am going to use simple "1 Star" etc. text in order for the user to rate the threads, but you can use images (a star for example). Pre-creation: First you will need a host for your PHP, either a web host or localhost is fine but you will need PHP and MySQL(i) capabilities. Also, this will not be covering creating users, or styling the pages.