For this coming month of May, I will be producing a series of tutorials that concerns wordpress blogging platform. I plan to create this tutorial while I further study wordpress platform at the same time.
Stay tuned and I hope you will liked these series of tutorials I'll be creating.
Sincerely,
Jowett Go
Read webmaster articles, seo techniques and news, programming, web development and designs, and tips and tricks.
Monday, April 28, 2014
Upcoming: Learning Wordpress Tutorial Series
For this coming month of May, I will be producing a series of tutorials that concerns wordpress blogging platform. I plan to create this tutorial while I further study wordpress platform at the same time.
Stay tuned and I hope you will liked these series of tutorials I'll be creating.
Sincerely,
Jowett Go
Stay tuned and I hope you will liked these series of tutorials I'll be creating.
Sincerely,
Jowett Go
Friday, April 25, 2014
Conditionals and Control Flow - 4/4 - codeacademy.com
Instructions:
- If your condition is
true
, your code shouldecho
"The condition is true"
- Otherwise (
else
) when it is false, your code shouldecho
"The condition is false"
. - Make sure your condition evaluates to
false
, so that your program prints out"The condition is false"
.
<html>
<head>
</head>
<body>
<p>
<?php
$trueOrfalse = "true";// Write your if/elseif/else statement here!
if ($yourName == "false") {
echo "The condition is true";
}
else {
echo "The condition is false";
}
?>
</p>
</body>
</html>
<head>
</head>
<body>
<p>
<?php
$trueOrfalse = "true";// Write your if/elseif/else statement here!
if ($yourName == "false") {
echo "The condition is true";
}
else {
echo "The condition is false";
}
?>
</p>
</body>
</html>
Conditionals and Control Flow - 4/4 - codeacademy.com
Instructions:
- If your condition is
true
, your code shouldecho
"The condition is true"
- Otherwise (
else
) when it is false, your code shouldecho
"The condition is false"
. - Make sure your condition evaluates to
false
, so that your program prints out"The condition is false"
.
<html>
<head>
</head>
<body>
<p>
<?php
$trueOrfalse = "true";// Write your if/elseif/else statement here!
if ($yourName == "false") {
echo "The condition is true";
}
else {
echo "The condition is false";
}
?>
</p>
</body>
</html>
<head>
</head>
<body>
<p>
<?php
$trueOrfalse = "true";// Write your if/elseif/else statement here!
if ($yourName == "false") {
echo "The condition is true";
}
else {
echo "The condition is false";
}
?>
</p>
</body>
</html>
Conditionals and Control Flow - 3/4 - codeacademy.com
Instructions: Under your if
statement on line 12, write an else
statement to capture the people who are only buying 5 items or fewer. In their case, useecho
to output "You get a 5% discount!"
<html>
<head>
</head>
<body>
<p>
<?php
$items = 3;
if($items > 5) {
echo "You get a 10% discount!";
}
else {
echo "You get a 5% discount!"
}
?>
</p>
</body>
</html>
<head>
</head>
<body>
<p>
<?php
$items = 3;
if($items > 5) {
echo "You get a 10% discount!";
}
else {
echo "You get a 5% discount!"
}
?>
</p>
</body>
</html>
Conditionals and Control Flow - 3/4 - codeacademy.com
Instructions: Under your if
statement on line 12, write an else
statement to capture the people who are only buying 5 items or fewer. In their case, useecho
to output "You get a 5% discount!"
<html>
<head>
</head>
<body>
<p>
<?php
$items = 3;
if($items > 5) {
echo "You get a 10% discount!";
}
else {
echo "You get a 5% discount!"
}
?>
</p>
</body>
</html>
<head>
</head>
<body>
<p>
<?php
$items = 3;
if($items > 5) {
echo "You get a 10% discount!";
}
else {
echo "You get a 5% discount!"
}
?>
</p>
</body>
</html>
Conditionals and Control Flow - 2/4 - codeacademy.com
Instructions:
- On line 7, set
$items
equal to a number greater than 5. Make sure to put a semicolon at the end of the line. - On line 9, edit the condition so that your program will print out
You get a10% discount!
<html>
<head>
</head>
<body>
<p>
<?php
$items = 6 // Set this to a number greater than 5!
if($items > 5) {
echo "You get a 10% discount!";
}
?>
</p>
</body>
</html>
<head>
</head>
<body>
<p>
<?php
$items = 6 // Set this to a number greater than 5!
if($items > 5) {
echo "You get a 10% discount!";
}
?>
</p>
</body>
</html>
Conditionals and Control Flow - 2/4 - codeacademy.com
Instructions:
- On line 7, set
$items
equal to a number greater than 5. Make sure to put a semicolon at the end of the line. - On line 9, edit the condition so that your program will print out
You get a10% discount!
<html>
<head>
</head>
<body>
<p>
<?php
$items = 6 // Set this to a number greater than 5!
if($items > 5) {
echo "You get a 10% discount!";
}
?>
</p>
</body>
</html>
<head>
</head>
<body>
<p>
<?php
$items = 6 // Set this to a number greater than 5!
if($items > 5) {
echo "You get a 10% discount!";
}
?>
</p>
</body>
</html>
Conditionals and Control Flow - 1/4 - codeacademy.com
Instructions: On line 8, use a comparison operator to compare two numbers. Make sure to end your line of code with a semicolon.
<html>
<head>
<title>Comparing Numbers</title>
</head>
<body>
<p>
<?php
5<10;
?>
</p>
</body>
</html>
Comparing Numbers
<head>
<title>Comparing Numbers</title>
</head>
<body>
<p>
<?php
5<10;
?>
</p>
</body>
</html>
Conditionals and Control Flow - 1/4 - codeacademy.com
Instructions: On line 8, use a comparison operator to compare two numbers. Make sure to end your line of code with a semicolon.
<html>
<head>
<title>Comparing Numbers</title>
</head>
<body>
<p>
<?php
5<10;
?>
</p>
</body>
</html>
Comparing Numbers
<head>
<title>Comparing Numbers</title>
</head>
<body>
<p>
<?php
5<10;
?>
</p>
</body>
</html>
Thursday, April 24, 2014
Introduction to PHP - 13/13 - codeacademy.com
Instructions: Let's finish this up! Beneath your existing PHP code, use echo
to print out your name and your age, like so:
echo $myName;
echo $myAge;
<!DOCTYPE html>
<html>
<head>
<link type='text/css' rel='stylesheet' href='style.css'/>
<title>PHP FTW!</title>
</head>
<body>
<p>
<?php
$myName = "Jowett";
$myAge = 23;
echo $myName;
echo $myAge;
?>
</p>
</body>
</html>
<html>
<head>
<link type='text/css' rel='stylesheet' href='style.css'/>
<title>PHP FTW!</title>
</head>
<body>
<p>
<?php
$myName = "Jowett";
$myAge = 23;
echo $myName;
echo $myAge;
?>
</p>
</body>
</html>
Introduction to PHP - 13/13 - codeacademy.com
Instructions: Let's finish this up! Beneath your existing PHP code, use echo
to print out your name and your age, like so:
echo $myName;
echo $myAge;
<!DOCTYPE html>
<html>
<head>
<link type='text/css' rel='stylesheet' href='style.css'/>
<title>PHP FTW!</title>
</head>
<body>
<p>
<?php
$myName = "Jowett";
$myAge = 23;
echo $myName;
echo $myAge;
?>
</p>
</body>
</html>
<html>
<head>
<link type='text/css' rel='stylesheet' href='style.css'/>
<title>PHP FTW!</title>
</head>
<body>
<p>
<?php
$myName = "Jowett";
$myAge = 23;
echo $myName;
echo $myAge;
?>
</p>
</body>
</html>
Introduction to PHP - 12/13 - codeacademy.com
Instructions: After your first variable, declare a second, $myAge
, and set it equal to your age as a number. Remember: no quotes around numbers!
<!DOCTYPE html>
<html>
<head>
<link type='text/css' rel='stylesheet' href='style.css'/>
<title>PHP FTW!</title>
</head>
<body>
<p>
<?php
$myName = "Jowett";
$myAge = 22;
?>
</p>
</body>
</html>
<html>
<head>
<link type='text/css' rel='stylesheet' href='style.css'/>
<title>PHP FTW!</title>
</head>
<body>
<p>
<?php
$myName = "Jowett";
$myAge = 22;
?>
</p>
</body>
</html>
Introduction to PHP - 12/13 - codeacademy.com
Instructions: After your first variable, declare a second, $myAge
, and set it equal to your age as a number. Remember: no quotes around numbers!
<!DOCTYPE html>
<html>
<head>
<link type='text/css' rel='stylesheet' href='style.css'/>
<title>PHP FTW!</title>
</head>
<body>
<p>
<?php
$myName = "Jowett";
$myAge = 22;
?>
</p>
</body>
</html>
<html>
<head>
<link type='text/css' rel='stylesheet' href='style.css'/>
<title>PHP FTW!</title>
</head>
<body>
<p>
<?php
$myName = "Jowett";
$myAge = 22;
?>
</p>
</body>
</html>
Introduction to PHP - 11/13 - codeacademy.com
Instructions: Declare a variable, $myName
, and give it your name as a string.
<!DOCTYPE html>
<html>
<head>
<link type='text/css' rel='stylesheet' href='style.css'/>
<title>PHP FTW!</title>
</head>
<body>
<p>
<?php
$myName = "Jowett";
?>
</p>
</body>
</html>
<html>
<head>
<link type='text/css' rel='stylesheet' href='style.css'/>
<title>PHP FTW!</title>
</head>
<body>
<p>
<?php
$myName = "Jowett";
?>
</p>
</body>
</html>
Introduction to PHP - 11/13 - codeacademy.com
Instructions: Declare a variable, $myName
, and give it your name as a string.
<!DOCTYPE html>
<html>
<head>
<link type='text/css' rel='stylesheet' href='style.css'/>
<title>PHP FTW!</title>
</head>
<body>
<p>
<?php
$myName = "Jowett";
?>
</p>
</body>
</html>
<html>
<head>
<link type='text/css' rel='stylesheet' href='style.css'/>
<title>PHP FTW!</title>
</head>
<body>
<p>
<?php
$myName = "Jowett";
?>
</p>
</body>
</html>
Introduction to PHP - 10/13 - codeacademy.com
Instructions: Go ahead and add a comment to our PHP code. It can say whatever you like!
<!DOCTYPE html>
<html>
<head>
<title>Oh No!</title>
</head>
<body>
<p><?php
echo "Oh, the humanity!";
// This is a comment. :)
?></p>
</body>
</html>
<html>
<head>
<title>Oh No!</title>
</head>
<body>
<p><?php
echo "Oh, the humanity!";
// This is a comment. :)
?></p>
</body>
</html>
Introduction to PHP - 10/13 - codeacademy.com
Instructions: Go ahead and add a comment to our PHP code. It can say whatever you like!
<!DOCTYPE html>
<html>
<head>
<title>Oh No!</title>
</head>
<body>
<p><?php
echo "Oh, the humanity!";
// This is a comment. :)
?></p>
</body>
</html>
<html>
<head>
<title>Oh No!</title>
</head>
<body>
<p><?php
echo "Oh, the humanity!";
// This is a comment. :)
?></p>
</body>
</html>
Introduction to PHP - 9/13 - codeacademy.com
Instructions: Go ahead and add a comment to our PHP code. It can say whatever you like!
<!DOCTYPE html>
<html>
<head>
<title>Oh No!</title>
</head>
<body>
<p><?php
echo "Oh, the humanity!";
?></p>
</body>
</html>
<html>
<head>
<title>Oh No!</title>
</head>
<body>
<p><?php
echo "Oh, the humanity!";
?></p>
</body>
</html>
Introduction to PHP - 9/13 - codeacademy.com
Instructions: Go ahead and add a comment to our PHP code. It can say whatever you like!
<!DOCTYPE html>
<html>
<head>
<title>Oh No!</title>
</head>
<body>
<p><?php
echo "Oh, the humanity!";
?></p>
</body>
</html>
<html>
<head>
<title>Oh No!</title>
</head>
<body>
<p><?php
echo "Oh, the humanity!";
?></p>
</body>
</html>
Introduction to PHP - 8/13 - codeacademy.com
Instructions: On line 8, create a variable named$myName
and set it equal to your name. Make sure to end your PHP code with a semicolon.
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p>
<?php
$myName = "yournamehere";
?>
</p>
</body>
</html>
<html>
<head>
</head>
<body>
<p>
<?php
$myName = "yournamehere";
?>
</p>
</body>
</html>
Introduction to PHP - 8/13 - codeacademy.com
Instructions: On line 8, create a variable named$myName
and set it equal to your name. Make sure to end your PHP code with a semicolon.
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p>
<?php
$myName = "yournamehere";
?>
</p>
</body>
</html>
<html>
<head>
</head>
<body>
<p>
<?php
$myName = "yournamehere";
?>
</p>
</body>
</html>
Introduction to PHP - 7/13 - codeacademy.com
Instructions: On line 8 in between the <?php
and ?>
, use echo
to calculate 17 * 123
. Make sure to end your PHP code with a semicolon.
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p>
<?php
echo 17*123;
?>
</p>
</body>
</html>
<html>
<head>
</head>
<body>
<p>
<?php
echo 17*123;
?>
</p>
</body>
</html>
Introduction to PHP - 7/13 - codeacademy.com
Instructions: On line 8 in between the <?php
and ?>
, use echo
to calculate 17 * 123
. Make sure to end your PHP code with a semicolon.
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p>
<?php
echo 17*123;
?>
</p>
</body>
</html>
<html>
<head>
</head>
<body>
<p>
<?php
echo 17*123;
?>
</p>
</body>
</html>
Introduction to PHP - 6/13 - codeacademy.com
Instructions: Go ahead and echo
a string of your choice on line 8. Try out the concatenation operator if you're feeling bold!
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p>
<?php
echo "Just " . "another" . " string";
?>
</p>
</body>
</html>
<html>
<head>
</head>
<body>
<p>
<?php
echo "Just " . "another" . " string";
?>
</p>
</body>
</html>
Introduction to PHP - 6/13 - codeacademy.com
Instructions: Go ahead and echo
a string of your choice on line 8. Try out the concatenation operator if you're feeling bold!
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p>
<?php
echo "Just " . "another" . " string";
?>
</p>
</body>
</html>
<html>
<head>
</head>
<body>
<p>
<?php
echo "Just " . "another" . " string";
?>
</p>
</body>
</html>
Introduction to PHP - 5/13 - codeacademy.com
Topic: PHP Syntax
Instuction: On line 8 in between the <?php
and ?>
, use echo
to output "I'm learning PHP
". Make sure to end your PHP code with a semicolon.
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h1>
<?php
echo "I'm learning PHP";
?>
</h1>
</body>
</html>
<html>
<head>
</head>
<body>
<h1>
<?php
echo "I'm learning PHP";
?>
</h1>
</body>
</html>
Introduction to PHP - 5/13 - codeacademy.com
Topic: PHP Syntax
Instuction: On line 8 in between the <?php
and ?>
, use echo
to output "I'm learning PHP
". Make sure to end your PHP code with a semicolon.
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h1>
<?php
echo "I'm learning PHP";
?>
</h1>
</body>
</html>
<html>
<head>
</head>
<body>
<h1>
<?php
echo "I'm learning PHP";
?>
</h1>
</body>
</html>
Introduction to PHP - 3/13 - codeacademy.com
Instructions:
Try it out. On line 8, use
Try it out. On line 8, use
echo
to output your name. Make sure to end your line with a semicolon.- <!DOCTYPE html>
<html>
<head>
</head>
<body>
<p>
<?php
echo "I'm [insert your name here]!";
?>
</p>
</body>
</html>
Introduction to PHP - 3/13 - codeacademy.com
Instructions:
Try it out. On line 8, use
Try it out. On line 8, use
echo
to output your name. Make sure to end your line with a semicolon.-
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p>
<?php
echo "I'm [insert your name here]!";
?>
</p>
</body>
</html>
Introduction to PHP - 2/13 - codeacademy.com
www.codeacademy.com
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p>
<?php
echo "My first line of PHP!";
?>
</p>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p>
<?php
echo "My first line of PHP!";
?>
</p>
</body>
</html>
Introduction to PHP - 2/13 - codeacademy.com
www.codeacademy.com
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p>
<?php
echo "My first line of PHP!";
?>
</p>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p>
<?php
echo "My first line of PHP!";
?>
</p>
</body>
</html>
Subscribe to:
Posts (Atom)