Archive for June, 2005

Passing Arguments to a JavaScript Function

by on Jun.22, 2005, under Tech Tips

Have you ever been writing a function and realised you don’t want a fixed number of parameters then this page is for you
Passing Arguments to a JavaScript Function

It describes using the arguments property of the function you are writing and gives a simple example of how to use them.

I used this method to create a function similar to c’s printf function that allowed me to pass a string with placeholders in it and replace them with the parameters I passed.

Comments Off on Passing Arguments to a JavaScript Function more...

SQL Database Connection Strings – SQL Server, MS Access, MySQL, Oracle, PostgreSQL, DB2, …

by on Jun.21, 2005, under Tech Tips

I found this site useful when setting up an odbc link ot an external database, it describes the connection strings to use to connect to the most common databases using various methods

http://www.sqlstrings.com/

Comments Off on SQL Database Connection Strings – SQL Server, MS Access, MySQL, Oracle, PostgreSQL, DB2, … more...

Avoiding problems caused by register globals in php

by on Jun.15, 2005, under Tech Tips

So here’s the situation, you have a fully working website that was written with register glabals on or just on an earlier copy of php. You either change host or your host upgrades and you find that register globals is off and you cant have it on just for your site.

(continue reading…)

Comments Off on Avoiding problems caused by register globals in php more...