The Cutting Edge Tech Blog


Calculating age from Date of birth by FSherratt

Calculating age from Date of Birth

This has baffled me for years but a couple of nights ago I finally cracked it. How to accurately work out someones Age from their DOB. For this tutorial I’m using the english method of presenting dates DD-MM-YYYY rather than the american way.

It actually rather simple by comparing the date of birth to the current date you can not only work out their age but also whether it’s their birthday or not.

Continue reading



Creating a basic blog using php and mysql Part 2 by FSherratt

Creating a basic blog using php and mysql Part 2

View part 1 here

Creating the index.php

The index page is the homepage for your blog, for this tutorial the index page will display your blog entries. Why is it called index not home or entries? It’s called index because when we stick it in the root directory the index.php bit won’t appear in the URL so out URL will only be http://www.yourdomain.com for example. This keeps the URL tidy, because a tidy URL is a happy URL. This page is where we start to use php to its full potential. We are only going to have one page to display all our blog entries, how are you going to do that I hear you asking, well I will explain below.

Continue reading



NetBean by FSherratt

NETBEAN Febuary 28 2009

Ever wanted to make one of those amazing java applications? Don’t have any money to spend learning? well i may just have the solution. Netbeans is a free application designed specifically for writing java/C++. This article should help you write your first piece of Java code and soon you’ll be on your way to writing a full application.
Continue reading