Feed Rss



Archive for February, 2008

Feb 28 2008

Tag Cloud v2 (archived)

category: PHP,Tutorials author:

Demo Tag Cloud Script (Latest Version) can be found here, with more customizable features. Please check out the demo page for examples on how to use the new functions available in this version. Some of the new features included in the new tag cloud script are: Link and URL Assignment Additional attribute assignment e.g. title [...]

tag: , , , ,


Feb 27 2008

How to write a tag cloud in PHP – Tag cloud tutorial

category: PHP,Tutorials author:

Learn how to write a tag cloud script to generate a tag cloud based on repetition of words. This tutorial will guide you through step by step and a download is available.

tag: , , , ,


Feb 27 2008

Select Insert Statement

category: Snippets,SQL author:

Demo A very simple way of passing data from one table to another is by using the select insert statement in sql. INSERT INTO table (forename, dayphone, address1, address2, address3, postcode, country, email) select r.first_name r.phone_number, r.address1, r.address2, r.address3, r.post_code, r.country, r.email from table2 r;

tag:


Feb 27 2008

Concatenation

category: Snippets,SQL author:

Demo Concatenating in SQL is pretty simple, it's purpose is to connect fields and string together as one string, like so. If you have a database table field called forename and you would like to have the word MR before each name, this is how it would be done. SELECT CONCAT('Mr. ', forename) FROM table; [...]

tag:


Feb 27 2008

SQL Case Statement

category: Snippets,SQL author:

Demo You can use a case statement in SQL like so: SELECT id, `name`, title, CASE id WHEN 2 THEN 1 WHEN 3 THEN 1 ELSE 0 END AS selectedCase FROM table

tag:


Feb 27 2008

Fluid Layout Images

category: CSS,Snippets author:

Demo A nice little way of adding a header image to a fluid layout it to break the header images into two slices and then assign the headers to a div in the same container like so. <style type="text/css"> #myContainerName { background: url('/path/to/images/header-back.jpg') repeat-x; height: 220px; } #myContainerName #leftBackground { background: url('/path/to/images/header-left.jpg') left no-repeat; height: [...]

tag: , , ,


Feb 27 2008

Three Column Layout

category: CSS,Tutorials author:

Demo This is a basic tutorial on how to create a basic css layout with three columns. So to start in your css you need four classes / containers to begin. Firsts your container for all the other containers becomes some what of a wrapper for all the other containers, in the class you will [...]

tag: , ,


Feb 27 2008

Onloading functions

Demo A cool way of onloading functions in javascript can be done like so. window.onload = function() { callFunctionOne(); callFunctionTwo(); // Etc }

tag:


Feb 27 2008

Javascript Image Preloader

Demo A very simple way to load the images into the browsers cache so when they are displayed they will not have to load the file and create a delay in the browser. // Initiate the image count variable var imageCount = 0; // create an array to contain the preloaded image files var preloadImages [...]

tag:


Feb 27 2008

Form Calculation

Demo This is a very basic JavaScript code to calculate the value of form elements. It can become quite useful when wanting to add items up on the fly if you prefer not to use ajax or you do not have a server side scripting language available.

tag: