HTML5 Tutorial Building a StickyNotes App – Part II

In this html5 tutorial, we will go a step farther from where we left. Yesterday, I showed you how to use HTML5 Web Storage API in my first html5 tutorial post. Today, I want, as promised, to embark on the next phase of the application. I hope you will enjoy this as much as I do. Before I jump in, let me do a recap really fast:

html5 tutorial

So, here is what we covered in my first post:

  • localStorage has setItem, getItem, length and key() features that come with it among other things.

PHP If Statements – Making Decisions PHP Tutorial

PHP If Statements can help you make decisions in code. I figured before I jump into the shopping cart, I should show you how to use if else statements which are common among many programming languages PHP included. They include if, else, and else if. I will share examples for each case and finally touch on switch statements and Arrays in this php tutorial.
php if statements

PHP if Statements

[php]
#Conditional statements are used to make decisions in programs
#Here is the skeleton:
<?php
if (condition){
//do something
}else{
//do something else
}
?>
#Let me drive this point home a little easier!
<?php
if (your electric bill is due){
//go pay your bill pal
}else{
//don’t worry about it, just enjoy the light
}
?>