PHP MySQL functions

How to add, extract, update or delete data    Well, now that our database table “mytable” is created (see previous tutorial), let’s learn how to input, extract or update the data. Let’s assume we have the following HTML form: <html> <head> <title>HTML form</title> </head> <body> <form method=”POST” action=”mysql.php”> <p>Your name: <input type=”text” name=”name” size=”20″></p> <p>Your […]

PHP functions

date(), mail() and other PHP functions    There are lots of different PHP functions. We’ll cover only few of them. Refer to other PHP tutorials when/if you need more PHP functions. date() This function returns a local time (date) formatted according to the parameters within the format string. An example: $date = date(“Y-m-d”); print “Today […]

PHP control structures

if, while, for and other control structures    The main PHP control structures are: if, while, for and others. Well, let’s take a look at some of them: if The if construct is used in almost every programming language, PHP too. Let’s take an example: if ($var1 > $var2) { print “$var1 is greater than $var2”; } Our script […]

PHP operators

PHP variable addition, subtraction etc.    And now let’s see what we can do with the variables in our PHP scripts. First, we’ll learn about PHP operators. Some of PHP operators are vary similar to basic arithmetic from school. Remember addition, subtraction, multiplication, division etc.? The same we can do with PHP variables: $var1 + […]

PHP variables

PHP variable types. Integers, strings, arrays    Well, now let’s talk about variables. PHP variables are represented by a dollar sign followed by the name of the variable. A variable name starts with a letter or underscore, followed by any number of letters, numbers or underscores. We use variables to set any values that are […]

PHP document structure

PHP comments and PRINT command    Well, you’ve already configured your software and now are ready to learn PHP. All your PHP documents must be saved with the *.php extension. Be sure to ask your hosts which PHP version is installed on their server. If it is PHP3.0, then save your PHP documents with the […]

Getting started with PHP

Configuring Windows for local PHP development    It is easier to develop your PHP scripts locally on your own computer and then upload your files once everything is tested. Saving, uploading and testing to a remote server is an arduous task. To develop your PHP files locally you will need to download and install Apache Web […]

PHP Tutorial

Well, you already know HTML programming and now would like to learn a new web programming language. PHP is one of the most popular scripting languages to be found on the web. PHP is a server-side web programming language. Much of PHP is a combination of Perl, Java, and C concepts. It performs sophisticated mathematical […]

Cascading Style Sheets tutorial

Cascading Style Sheets tutorial Short introduction to CSS     Your name:  Well, do you like the above form and our scrollbar? Or would you like to easily handle your website text, paragraphs and so on the way you want? If your answer is yes, then keep on reading. We are going to talk here […]

FTP tutorial

Putting HTML document online   So, you’ve already learned how to create HTML pages and now want to place them online so everyone could visit them. Well, to get your HTML documents online, you will need: 1. A host (a web server that will give you space to house your HTML pages so that people could go […]