Feed Rss



Posts by lotsofcode:

Feb 20 2011

PHP Tag cloud

category: PHP author:

Generate your own tag cloud with this easy to use PHP class. A tag cloud is typically used to describe the content of web sites. Many customisable features.

tag: , , , ,


Sep 07 2010

MySQL derived temporary table & sub query alias conditional

category: SQL author:

DemoDownload In SQL, you cannot use a column alias in the where clause that's been defined in the select clause, for example an alias created by a sub-select. Today i discovered a derived temporary table workaround, this creates a table with my select statement and this allows me to use the alias with a conditional [...]

tag:


Sep 05 2010

Call of Duty Ratio Calculator

category: Blog author:

DemoDownload This is something i wrote a long time ago for a buddy of mine, he wanted a way to calculate the K/D ratio for the Call of Duty game. This was so he knew what he needed to reach a higher ratio. This is something he still finds useful so i wanted to share [...]


Sep 25 2008

Backing up a mysql table, using SQL.

category: SQL author:

DemoDownload Today i found a nice and simple way of backing up a mysql table without renaming / exporting. The technique i found creates a new table with the same structure and copy across the data for the current table, sounds simple and it is, take a look at the following. Simply replace the [NEW_TABLE] [...]


Mar 25 2008

Three Columns with Header, Menu and Footer

category: CSS,Templates author:

DemoDownload Simple template for inclusion into your website.

tag: ,


Mar 24 2008

Simple Smarty Pagination

category: PHP,Tutorials author:

DemoDownload With the combined effort of my PHP Array Pagination script and this tutorial you will be able to pagination results (database & non database driven results) and intergrate it easily with the smarty template engine. So, to start download the PHP Pagination script and then put it into a directory within your smarty setup. [...]

tag: ,


Mar 24 2008

Simple Modular Arithmetic with Smarty Template Engine

category: PHP,Snippets author:

DemoDownload Something i take for granted in PHP is the use of Modular Arithmetic when display results in a grid like format. Usually in php, i would do something like this to display three items per row if ($count % 3 == 0) { // Add Break / Clear here } So i assumed something [...]

tag: ,


Mar 20 2008

jQuery – Skinning HTML Select Boxes

DemoDownload Had enough of the same old operating system based select field style? Why not skin it up, this script allows you to apply a skin to a select box. This tutorial is based on the original code i wrote, however this version is less buggier and has support for non JS enabled browsers! Nice [...]

tag: ,


Mar 16 2008

jQuery for beginners

DemoDownload This is a little tutorial i put together to help people starting out with jQuery to learn the basics. So, first things first. Pop over to http://docs.jquery.com/Downloading_jQuery and download the latest version in whatever form you prefer, Minified, Packed or Uncompressed. If you are not fussed then i would suggest the packed version. No, [...]

tag: , , , ,


Mar 12 2008

WordPress TinyMCE Image Upload Plugin

DemoDownload After many hours looking and looking for a plugin for TinyMCE i finally found one that actually worked quite well and was what it said it is .. An actual image upload plugin for WordPress's TinyMCE ... ! Take a look here: http://www.soderlind.no/archives/2006/01/03/imagemanager-20/ Download here: http://www.soderlind.no/download/ImageManager2.41.zip I know someone will really appreciate this post [...]

tag: , ,