Twitter style time stamp
0This function takes the date and time and returns how much time has passed, just like twitter does. for example 10 seconds ago
Twitsnip is a place to post code snippets and share them. Login with your existing Twitter account, if you don't have a Twitter account simply create on at www.twitter.com
This function takes the date and time and returns how much time has passed, just like twitter does. for example 10 seconds ago
This simple function checks the name of a variable and if it is a certain value changes it, else it will return the original value.
This was the first function I ever wrote and I still use it in nearly every PHP application I create.
I use this in case someone has forgotten there password alongside some other code. Hope it is useful!
Been using this useful script to get Latitude And Longitude from there address. Work with first 3 letters of postcode only for some reason.
Easily delete a folder and all sub folders from a server using a PHP function
Snippet to re-order date vars to put them in the correct format for mysql entry.
This functions allows you to filter any post data ready for insertion into MySQL
2 login functions that check if a user is logged in by checking is a session is equal to true that would have been set on login. If not logged in the redirect to login.php
These functions will login a user based on a username and password being matched in a mysql database.
This snippet will show you how to update multiple rows of a MySQL database table using a single form.