Tabs
Tabs allow you to show multiple bits of content on one page. They are created using a combination of HTML, CSS and JavaScript. Let’s learn how. HTML First, let’s create our HTML. <h2>Tabs</h2> <p>Click on the buttons inside the tabbed menu:</p> /*This section makes the tabs at the top of the container /* <div class=”tab”>…
Read MoreCleaning Up Form Inputs
This bit of code allows you to sanitize any input from the user to make sure it does not contain anything harmful or allow any hacking of the site. Note: You can take the comments out – those are just to explain it to you! Add this function to your functions.php file. function clean_input($str){ //connects…
Read MoreAction: Plan It!
Steps to Take This lesson will walk you through the following steps. Plan it. Do a flow chart…some pseudo code…think it out. Create the HTML and CSS for new user forms. See the topic Cleaning up Form Inputs for information on how to add some security precautions. Apply JavaScript & HTML validation. For this module…
Read MoreAction: Create a functions.php file
We just learned about reusing code. There are certain functions that you use over and over again. Create a functions.php file that contains the basic functions you use. Here is a list of the ones you should put in the file to start. You can add others as you need to. Connect to the database.…
Read MoreHow to Add PHP pages to WordPress
First, duplicate post.php or page.php in your theme folder (under /wp-content/themes/themename/). Rename the new file as templatename.php (where templatename is what you want to call your new template). To add your new template to the list of available templates, enter the following at the top of the new file: <?php /* Template Name: Name of…
Read MoreBuilding a Database: Other Attributes
When you are creating a table in MySQL, not only do you specify the field type and length but other elements as well. Let’s review a few of the important ones: AUTO_INCREMENT This one is huge and you will use it a lot…like pretty much every time you create a database table! You use this…
Read MorePlan it out: High Level Design
Now – let’s figure out how it will work at a very high level. There are multiple ways of doing this. Here are a few. Wireframe Wireframes are graphical representation of all the screens in the project including how they interact with each other. These are one of the best ways of making sure the…
Read MoreHmm…does that idea work?
Now that you have brainstormed…take that list of ideas and put all the ones that aren’t totally crazy . Step 1: Document Your Ideas Go to the List of Ideas to put in a list of all possible ideas with some supporting data. Figure out the top 2-4 ideas that you want to consider a…
Read MoreBrainstorming
So, how do you come up with an idea??? Ideas come from everywhere. An idea can pop into your head at any time. Personally, I have my best ideas while I’m out for a run! But, if you want to try to draw one out….brainstorm! Brainstorming is the act of putting down every idea you…
Read MoreMore Tricks on Inserting Data
Inserting or Updating https://stackoverflow.com/questions/23771500/insert-or-update-on-duplicate-with-two-keys Inserting a Date Using Average and Sum again
Read More