Scott Klarr Jr
Topics About Web Development
There are many ways to make your online writings accessible and more pleasant to read: multi-tier headings, short paragraphs, justified text alignment, spacious line-height and clean gutter spacing. There is, however, one additional element that always seems to be forgotten when it comes to online publishing: The horizontal rule.
Oct 21, 2008 Shorthand PHP IF statement without the else notation
In an earlier post I explained how to do Ternary shorthand if/else statements in PHP. One of the major benefits of using a shorthand if/else statement is that you can use it inline with a string. But what if you only need to do in inline if statement, without the else?
If you make use of the code analyzer available in many modern IDE environments when coding strictly to PHP5 standards, you may have noticed that you will get errors thrown at you for using variables before they are declared in included files. For example, lets say you have two files, header.php and index.php.
Oct 06, 2008 How to grab thumbnails for youtube and google video
Today I modified my blog topic listing layout from just a simple link list to a more traditional blog style with a summary for each topic. It was a major improvement but I felt that it was a little too bland and decided that thumbnails of the videos and images contained within each topic would make it more appealing.
Feb 11, 2008 How to properly write XHTML
It seems nowadays that everybody knows HTML/XHTML, or at the very least, they think they do. Despite the language's rather rudimentary tag set and easy context, people still do not use it correctly. In fact, its simplicity is taken for such granted, that even highly respected websites like google.com and yahoo.com fail the W3C validation tests. Here I will cover some of the most abused and least addressed issues people fail to pay attention to when writing XHTML so that it may help you code better.
Feb 06, 2008 How to select previous/next rows in MySql
I decided to add the previous post & next post navigational links that you see at the top of this page for more internal cross-links as well as an easier means to browse posts. I went to type up the code really quick and had a temporary "coding block." So naturally I check google for a quick answer and found a few results of people asking for the same thing but no posted solution that I could see.