Tutorials

Give me a call...    (619) 793-4645

SEARCH

CONNECT WITH ME

  • Facebook 
  • Twitter 
  • LinkedIn

About Me

I'm a freelance web expert who loves delivering big results to small businesses. I specialize in website design, e-mail marketing, and internet advertising.

Happy Clients

Matt seamlessly and effortlessly helped us set-up our new website/e-mail. Matt was responsible, timely and cost effective.

Jeffrey L. Ballard, MD, FACS
VISOC

Even though we are a small company (under 5 employees), Matt created a website that works like a large company. We can provide our hundreds of customers with immediate access to viewing and purchasing their photos. With Matt's help, he alleviated the stress of the sale and allowed us to spend more time creating great photographs.

Mariah Seminara
Life in Motion Photography

CSS for Beginners: Introduction

Posted in: Blog, CSS, Tutorials by Matt Goldman on November 11, 2010 | 1 Comment

What is CSS?

CSS stands for Cascading Style Sheets and it can be used to style your HTML files. HTML, or HyperText Markup Language, is responsible for the structure of your document. HTML tags are used to semantically divide your page content into meaningful sections. These sections and elements are then styled, and given layout characteristics via a separate .css file.
Read more…

PHP Function that Chooses a Singular or Plural Word based on an Input Number

Posted in: Blog, PHP, Tutorials by Matt Goldman on | 1 Comment

The other day, I needed a PHP function to display a word either singular or plural based on a number referring to that word. For example, this could be used on a blog post which may have 0 comments, 1 comment, or 2 comments. Feel free to use this in your projects, or modify it as needed.

function word_choice($number, $singular, $plural) {
    if($number == 0 OR $number >= 2) {
        return $number . " " . $plural;
    }else{
        return $number . " " . $singular;
    }
}

//Implementation
$number = 32;

echo word_choice($number, 'comment', 'comments');
//This will show "32 comments"

$number = 1;

echo word_choice($number, 'comment', 'comments');
//This will show "1 comment"

HTML for Beginners: Introduction

Posted in: Blog, HTML, Tutorials by Matt Goldman on October 5, 2010 | No Comments

An article I was reading recently compared trying to build a website without knowing any HTML to attempting to build a house without knowing what a brick is. It’s extremely useful to know a bit about HTML even if it’s just the basics. In this tutorial series, I hope to give you a basic understanding of HTML and CSS, as well as to point you in the direction of several other great resources for learning about these topics.

Read more…