LibDesigner

Collection of Designer's Tools

Data Types in php – PHP Lessons

elephant_phpHere we come to the data types in PHP. Currently PHP supports 8 types of data types.

In this tutorial we consider only four:
PHP is a language with dynamic typing. I will explain a little – in the strongly typed language when we create a variable we immediately say what kind of data will be stored there. If we were declare that there will be a number then an attempt to put there something else will result in an error. In strongly typed languages ​​we cannot afford to use a variable of any data type without declaring it. PHP itself is trying to determine what kind of data type is stored in variable and usually he does it correctly.
Read more… »

No Comments »

Errors in php – PHP Lessons

elephant_phpWhen we write code, we will get some errors. This is normal. Any programmer will get errors. PHP in this case is trying to show us where there was an error and the line of code number.

The most popular error in PHP – we do not put “;” at the end of the expression:

<?php
$user_name = "Martin";
echo $user_name;
unset($user_name)
echo $user_name;
?>

You’ll get the following error:

Parse error: syntax error, unexpected T_ECHO, expecting ‘;’ in /htdocs/test.php on line 5.
Read more… »

No Comments »

Echo in php – PHP Lessons

elephant_phpEcho
Echo command in php serves to output text. You will use the echo command more than any other. Let’s take a closer look on it!

Output line

To display the line use echo. You can use it to display the text in quotes, variables, etc. Let’s look at an example.

<?php
$myString = "Hello!";
echo $myString;
echo "<h5>I love using PHP!</h5>";
?>

We already did “Hello World!” output but the following command echo contains html tag. Use html tags are not prohibited as php gives us the dynamics and statics page decoration is still on ordinary html.
Read more… »

No Comments »

Comments in php – PHP Lessons

elephant_phpComments

Classic PHP programming tell us that the comments in the program should be 30% of the code. There are merely two kinds of comments: the so-called single-line and multi-line comments.

Here is the single-line comments:
<?php
# this is comment
// and this is comment also
phpinfo(); // one more comment here
?>

Read more… »

No Comments »

Variables in php – PHP lessons

elephant_phpIf you have never written a program the concept of variables may be new to you. But do not worry, it’s not so difficult!

Variable is a place to store value, such as a text string «Hello World!»(string) 4 (integer). Variable can be used anywhere in your code, instead of having to enter the actual values ​​over and over again. In PHP you define a variable as follows:

$ variable_name = Value;

As you can see, any variable starts with a dollar sign. You need to remember that otherwise it will not work. This is a common mistake made by novice PHP programmers!
Read more… »

No Comments »

How to create php pages – PHP lessons

Syntax

Before we talk about the syntax of PHP, let’s first define what is meant by the word syntax.
Syntax – the rules that must be followed to write properly structured code .
PHP syntax and semantics are similar to most other programming languages ​​(C, Java, Perl). The only difference is that the PHP code is embedded in the html page layout . All PHP code must be contained in the following tags:
<?php
?>
or:
<?
?>

If you do not want problems , then write in standard form. This ensures that your scripts will work on servers with different settings.

Read more… »

No Comments »

Top Free CSS Templates Available Online – templatemo 361 design work free css template

Free CSS Template -EndearingGreen

Preview and download

No Comments »

Top Free CSS Templates Available Online – freecsstemplates.org EndearingGreen free css template

Free CSS Template -EndearingGreen

Preview and download

No Comments »

Top Free CSS Templates Available Online – freecsstemplates.org conventional free css template

Free CSS Template - templatemo travel template

Preview and download

No Comments »

Top Free CSS Templates Available Online – templatemo travel template

Free CSS Template - templatemo travel template

Preview and download

This free css travel template was made by templatemo. You may use it for travel websites or travel blogs. This template is very easy to edit and it may be changed to travel agency templates or vacation website templates. We recommend you to get Dreamweaver 8 or higher to change css/html part of the template. This template may be helpful to any company or designer who would like to create travel website design, travel magazine website templates or travel website reviews templates. Red background catches the visitor’s attention from the beginning and makes your travel agency website template or vacation web template so bright and attractive.

Author: Templatemo

No Comments »