Doing Something With The Form
In the last topic, we learned how to link a form in an HTML document to a PHP script and how to use that script to access the data that the user had typed into the form. However, once we had the data – all we did was echo the results of the form fields…
Read MoreDatabase Fields
https://www.tutorialrepublic.com/sql-reference/mysql-data-types.php
Read MoreHomework: More Strings
Create a new file called strings.php – then… Create the basic HTML structure. In the <body> section, create a <h1> tag with a header that says “Strings!!!”. Store these three strings in variables called $string1, $string2, and $string3. String 1: “Hey it’s October which means Halloween is about to be upon us. What is your…
Read MoreSemantic Elements
What does this mean? A semantic element is where the name of the element clearly defines it’s meaning. So, <div> or <span> are not one but the <form> or <table> tags are. Make sense? What do they do? Wouldn’t it be clearer instead of typing <div id=”header“> or <div id=”nav“> if you could just use…
Read MoreString Functions
There are lots and lots of functions in PHP that do fun things with strings. These can be very useful in parsing data. Here’s a full list at at w3schools.com. We will take a look at a few specific ones. We’ll use these strings in these examples. $text1 = “Today is” $text2 = “a very…
Read MoreConverting Strings to Numbers & Vice Versa
Sometimes, you need a number to work like a string. And sometimes you need a string to act like a number. Why? Here are a couple of examples. Example 1 You are calculating the cost of an ice cream based on how many scoops and toppings the person is asking for. This cost will be…
Read MoreBasic Math & String Operators
Operators are basically tools that allow you to do things with the values in your program including your variables. Math Operators + addition – minus * multiplication / division Incrementing/Decrementing Operators PHP supports some fun ways to increase or decrease a variable by the amount of 1. This can be very useful for counters or…
Read MoreCreating a Function
There are two basics steps needed to use a function. Define or create your function. Call or invoke your function. Let’s look at how to do that in JavaScript. Creating a Function Functions are created by using the keyword function followed by the function name, a starting and ending parentheses and then a set of…
Read MorePlan & Design: Features
Once the requirements are squared away or there are none that are so big that you can’t get started – you are going to create a Functional Specification which we will call Func Spec for short. What is that? A blueprint for how the product should look and work Details the features and functionality including…
Read MoreTimeline & Cost Estimates
A timeline shows the schedule for how the project will be developed. Once you have a timeline, figuring out costs will come from that. Here are some of the basics that you will need to create a good schedule. Start date of the project. Lists of tasks that have to be accomplished in order. Tasks…
Read More