-
-
What, who, where am I?!?
Craig Lotter is a web developer based in Gordon's Bay, South Africa, who seems completely incapable of shaking off that pesky inner child within, the one that forces him to love all things animated or hand drawn.
The Rugged Rock of Craig contains snippets of his life, popular culture and all the important things like anime, manga, games and comic books. The CodeUnit of Craig on the other hand contains the more serious stuff like code snippets and tutorials, while the House of C chronicles his foray into the world of web comics.
For which it never seems he has enough time anyway.
-
Rugged Rock Studio
- CodeUnit Collections
- Funakoshi Karate International South Africa
- Rugged Rock Studio: The Portfolio of Craig Lotter
- The Codeunit of Craig
- The House of C
- The Rugged Rock of Craig
Tag Archives: code
PHP Script to Trim and Replace Apostrophes for Each Value in Each Column of Each Table in a MySQL Database
I needed to quickly whip up a script that would strip all leading and trailing whitespace plus replace any apostrophes or quotation marks with their web code equivalent for each and every value that appeared in every row, column and table in the database. Continue reading
Posted in Technology & Code, Tutorials Tagged code, database, database walk, htmlentities, mysql, PHP, replace, trim, tutorial, whitespace View Comments
PHP: Calculate the Number of Working Days in a Month
How to calculate the number of working days in a month, in other words discount Saturdays and Sundays from a month’s total number of days. Continue reading
Posted in Technology & Code, Tutorials Tagged calculate, calculation, code, days in month, number of days, PHP, working days View Comments
PHP: Select Random Web Color with One Line of Code
The quickfire tip for today is the generation of a random HTML color using just a single line of PHP color. Handy if you want to throw a bit of a surprise burst of changing color here and there… Continue reading
Posted in Technology & Code, Tutorials Tagged code, color, hexadecimal, html, PHP, random color, web View Comments