Content By Date Snippets


Handy helper function which parses about any date and returns the same date in MySQL date/time format.

Change Date from dd/mm/yyyy to yyyy-dd-mm

07 September, 2017   

CSS Code for Common Unicode Icons

The Gmail Bookmarklet will add a unique string to the email signature to prevent Gmail from trimming the content.

03 November, 2011   

Here are some simple examples of using the functions with your variables. Run these from any ".asp" page and watch what happens

30 August, 2011   

This snippet to show how to use the Last-Modified and the ETag header to optimize the caching of a website. If used correctly this will speed up your page loads.

An example of Strict Textmate Template

19 December, 2012   

How to convert a java util Date into a sql Date for use in databases.

19 December, 2012   

Example shown here how to convert String to Date in Java

Make a MySQL Database called "db" with a table named "variables" with three rows ("id", "title", and "content"). Insert your data. Then call the page by going variables.php?id=1 etc.

10 August, 2011   

An easy way to send an HTML email with an attachment.

If a string is contained in another string and you need to search for it, this is a very clever way to do it:

19 October, 2011   

An example to check Weekend

23 January, 2013   

Returns the number of the quarter containing a given date.

11 April, 2013   

Pull external HTML code from a file right into your webpage

07 March, 2011   

Shows how to create a simple file download by using PHP. The content could also be dynamically generated)

15 February, 2012   

PHP code to displaying the current date in an HTML page.

09 March, 2011   

Default XHTML start code for designing a layout or template for your website. Great for working on several clients/projects and do not want to retype this code over and over again.

20 February, 2012   

SQL select query to show records with specify date in where clause

09 October, 2011   

Example shows how to get the database date and time.