Dynamic PHP based MySQL data readout with HTML output

This brief article gives a step-by-step description on how to dynamically read data coming from a MySQL database and how to both visualize and edit that data using HTML table and form markup. How our data management markup will look like Let’s assume we want to build a Comic management database application handling data like this: If a user clicks “Delete” the […]

How to build a website — PHP navigational skeleton step by step

This brief article describes step-by-step how to build a website’s base structure using PHP. If you attempt to follow this course, you should have at least read the following articles first: HTML coding basics Learning PHP — output, calculation and variables PHP control structures — loops and conditions PHP inter-script GET and POST parameters However […]

PHP GET and POST parameters

This brief article shows step-by-step how PHP inter-script GET and POST parameters are to be used in dynamic web pages. Why script parameters? Basically, you could use just one script (file) for your entire website project. However, your code will get rather long, maintenance will get harder and errors more difficult to track. So you may want to […]

How to use PHP functions

This brief article shows step-by-step how functions and their parameters are to be used in dynamic web pages coded in PHP. Why use functions? Very often you will find yourself using the same code over and over again, especially when using string operations or connecting to databases. Normally you would need to copy and paste the […]

PHP for loops and conditions

This brief article shows step-by-step how to use PHP for loops and conditions within dynamic web pages. Implementing loops in PHP Why loops? Whenever we need to either repeat certain operations for a known or unknown amount of times, we are going to need loops. Loops can make it easier to just repeat the same […]

Learning PHP: programming basics for output, calculation and variables

This brief article shows step-by-step how variables are used to calculate and visualize content within dynamic web pages coded in PHP. Let’s clarify some basics first. What is PHP? PHP is a script language, standing for Hypertext Pre-Processor. This also describes what it actually does: PHP processes data and generates HTML information output based on […]

HTML form elements

This brief article gives an introduction to HTML form elements and how they are used within web pages. A simple HTML form First of all, let’s look at how a form is used in general. 1 2 3 <form action="mailto:user@domain.de" method="POST" enctype="text/plain"> <!– Some input and/or button elements –> </form><form action="mailto:user@domain.de" method="POST" enctype="text/plain"> <!– Some […]

HTML Coding Basics

This brief article gives a step-by-step introduction to HTML coding basics. We’re heading towards simple web frontend design using basic HTML elements. Of course you could use one of the fancy visual frameworks like Twitter Bootstrap, which is totally fine, but would require that you already know about the basics of HTML in order to […]

Client and Server Infrastructure: File, Web, Database

This article takes you by the hand and shows which client and server side components you need and what ways exist in order to successfully build a database supported web application. The overall architecture First of all, let’s take a look at the overall architecture we’re dealing with while developing: Our client provides us with […]