News and Blog > Archive for 3 years ago

3 years ago - Posted by Steve Marks to Javascript / jQuery, SEO, Web Development.
If you’re anything like me and work on a multitude of various websites you’ll have different versions of sites all functioning at the same time; maybe a copy running on your localhost for development, a staging version and the live production site visible to the public. With an...
3 years ago - Posted by Steve Marks to Javascript / jQuery, Web Development.
Are you adding 2 and 2 together and getting 22? It’s a common problem with adding numbers, especially if the numbers are being passed via a user’s input in a textfield. The problem here is that the numbers are being treated as strings and doing something like below will result ...
3 years ago - Posted by Steve Marks to PHP, Web Development.
The PHP framework CodeIgniter, by default, does not allow the use of passing parameters via the URL query string, forcing developers to use URL segments to pass information between pages. There are however some scenarios where you do need to access the $_GET array, for example when integra...
3 years ago - Posted by Steve Marks to (X)HTML / CSS, Web Development.
Everyone remembers their first attempt at creating a website. For me, my first website was the most important. It taught me not only the very basics of creating simple HTML, but also taught me that I love to code and without it, I sure as Hell wouldn’t be doing what I do today. If yo...
3 years ago - Posted by Steve Marks to (X)HTML / CSS, Web Development.
By far the easiest, cleanest, most lightweight and most flexible way to create a horizontal navigation menu is to use an unordered list and style it with CSS. I’m going to show you, starting with a standard list, how to create a fully functional menu including formatting and function...
3 years ago - Posted by Steve Marks to (X)HTML / CSS, Javascript / jQuery, Web Development.
When reading forums I’ve seen the question popup quite a lot that is; How do I change the CSS ‘background-image’ property using Javascript. I remember when I needed to do this myself it took quite a while for me to figure out how to do it. I’d been able to change fo...
3 years ago - Posted by Steve Marks to (X)HTML / CSS, Web Development.
View a Demonstration I remember a couple of years ago, before I used CSS to structure my website layouts, achieving 100% height with tables and getting a footer to stick to the bottom of the page was a nightmare. No matter how many forums or articles I read, it never seemed to be an easy [...
3 years ago - Posted by Steve Marks to Software, Web Development.
If you’re anything like me and use the FTP client FileZilla to manage hundreds of sites, you’ll know that to lose all your site manager settings and have to re-input them would take hours. If the time has come to backup or if you’ve purchased a new computer and are lookin...
3 years ago - Posted by Steve Marks to Javascript / jQuery, PHP, Web Development.
During my 7 or so years of working with PHP I have created literally 100′s of enquiry forms. From simple ones containing just a couple of fields to complex ones (sometimes maybe a bit too complex) containing hundreds of different variables. They all essentially however do the same th...
3 years ago - Posted by Steve Marks to MySQL, Web Development.
When inserting records into a MySQL table that contains an auto-incrementing field you might at some point start receiving the following error: “Duplicate entry ’127′ for key 1″ If this is the case it means the datatype of the field in question is set as ‘tiny...