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

Advertisements



A Complete Guide to CSS3 by FSherratt

A Complete Guide to CSS3

CSS3 is a very hot topic at the moment and probably my favourite code at the moment, as W3 Mozilla and Webkit are releasing new features all the time. Although it is only compatible with modern browsers such and Safari, Mozilla and Chrome, and only partially compatible with IE, It’s still an incredible useful to be using especially as when used by incompatible browsers, it’s just ignored so unless you’re using it for key features of your blog, you should be able to add it and forget about backwards compatibility.

Continue reading



10 Things You Probably Didn’t know How To Do On Your Mac by Xptiger

10 Things You Probably Didn’t know How To Do On Your Mac

This article/tutorial will show you how to do some pretty epic and useful stuff with your Mac (providing you have a Mac and are running Mac OS X 10.6). In this article/tutorial we will be covering some security features of your Mac, How to snaz up you’re working environment and some generally useful tips.

Continue reading



jQuery Basics by FSherratt

jQuery Basics

Since  jQuery 1.4 has just been released I thought i might be a good time to go through some basic jQuery functions and how they can easily be used to enhance a website, keeps users entertained and cut pages. The jQuery library is simple just a large chunk of code that allows you to quickly and simply write JavaScript and AJAX functions.

jQuery Logo

Continue reading



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

Creating a basic blog using php and mysql Part 3

View part 1 here

View part 2 here

Creating the create.php page

In the last tutorial we created a dynamic page to display our blog entries but we couldn’t test to see if it was working or not as we didn’t have any entries, so in this part we’re going to build a form so we can submit our entries.

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