PHP Tutorial

Free download php installer XAMPP.

XAMPP is an easy to install Apache Distribution for Linux, Windows, Mac OS X, and Solaris. The package including the Apache web server with great designer you can relate table using designer like other database software's..XAMPP is an easy to install. Apache distribution containing MySQL, PHP and Perl.

You can use XAMPP for your web database it easy to use and flexible and most practical and most complete webserver solution.
You can download this software in this site and just simply install that to own computer.

This image is XAMPP Control Panel Application that you can START and STOP APACHE and MYSQL

























File Size : 37.53 MB
You can download this software below.


Download File

Ajax + Php, Pagination/Paginator

I was board last night so i created a pagination function using sajax here's a simple example i created.
below is the function.




Download pagination

PHP Shortcuts of If-Else statement

One day i was assigned to update a website which created by my mentor in php, while updating the some parts of the function I've found a 1 line of which I've never encountered before in my PHP life, so i asked him if what is the purpose of this line of code then he said it is a shortcut If statement in php, i placed the sample line of codes below, please check.
$authenticated = true; 
// 1 standard if-else statement 
if ($authenticated) 
{ 
 echo 'YES'; 
} 
else 
{       
 echo 'NO'; 
} 
// same with 1 
if ($authenticated) { echo 'YES'; } else { echo 'NO'; } 
// [2] lil bit shortcut 
if ($authenticated) 
 echo 'YES'; 
else  
 echo 'NO'; 
// 3 the shortcut 
echo $result = ($authenticated) ? 'YES' : 'NO';




Dowload tutorial for PHP.

You can download PHP tutorial here.
Here i would like to show the very basics of PHP in a short, simple tutoria that you can download herel.
This text only deals with dynamic web page creation with PHP, though PHP is not only capable of creating web pages you can also a dynamic webpages on it.
In this tutorial we assume that your server has activated support for PHP and that all files ending in .php are handled by PHP. On most servers, this is the default extension for PHP files, but ask your server administrator to be sure. If your server supports PHP, then you do not need to do anything. Just create your .php files, put them in your web directory and the server will automatically parse them for you. Enjoy



















You can download this tutorial below.


Download File


Basic student Information program using Php.

This program allows user to add, edit, delete, display records using Php. And with page navigation.. including dynamic check boxes. Enjoy!..
You can post comments in my program.





















You can download my example below.


Download File



How to use for each statement in Php?

I have here an example using foreach statement in Php the first thing you need to do
is to open notepad but if you have dream weaver or other software editor is OK.
Php has several conditional and loop statements that have been part of the
language since its creation. Unlike them, the foreach statement is one
of the loop statement influenced by other programming languages that
used foreach for years. For example java. Unlike the other conditional and loop
statements, the foreach statement is used only on arrays so basically foreach statement
accept only variable arrays. I have here an example that you can download using foreach statement.. You can post comments or question about other entities in Php or other languages.

You can download my example below.

Download File

How to display numbers using do while loop in php?

do while statement is one of loop statement in Php that
has a specific condition depending the program flows basically do while loop and while loop 
are commonly the same but deffirent format of coding. The same with while loop that do while
statement will automatically stop if the condition becomes false.
Example:
int x=1;

do {

System.out.println("Number: " + x);
x++;

}while(x<=10);
You can download my example below.

Download File

How to display numbers using while loop in php?

while statement is one of loop statement in Php that
has a specific condition depending the program flows. The while loop
statement will automatically stop if the condition becomes false for
example if you creating a simple program displaying numbers the
while loop statement will stop displaying numbers base in a given value
or the count of the loop on how many times the loop repeat.

while (condition)
code to be executed;

Simple looping using while loop
Example:

$i=1;
while($i<=10)
  {
  echo "The number is " . $i . "
";
  $i++;
  }

Output:

The number is 1
The number is 2
The number is 3
The number is 4
The number is 5

Download File

How to declare arrays in Php?

Example 1:

$names = array("Johnr","Mario","Merbert");

Example 2:

$names[0] = "John";
$names[1] = "Mario";
$names[2] = "Merbert";
echo $names[1] . " and " . $names[2] . " are ". $names[0] . "'s neighbors";

?>

You can the element or the value of the array using there indeces or index.

Example:
echo $name[2];

Output:

Mario

Download File

How to decalre variable using Php

Proper Format

$var_name = value;

Example:
//Open parameter

$txt = "Hello World!";
$number = 25;

$echo($txt . "
");
$echo($number);

?> //Closing parameter

Ouput:

Hello word
25

Download File

PHP Tutorial – 1 – Installing PHP



PHP Tutorial – 2 – Basic Output and Variables



PHP Tutorial – 3 – Basic Math Functions




PHP Tutorial – 4 – If Else Statements


PHP Tutorial – 5 – if/elseif/else



PHP Tutorial – 6 – Switch statement





PHP Tutorial – 7 – While Loop




PHP Tutorial – 8 – Do Loop



PHP Tutorial – 9 – For Loop



PHP Tutorial – 10 – Arrays




PHP Tutorial – 11 – Associative Arrays



PHP Tutorial – 12 – Adding and Modifying Elements in an Array


PHP Tutorial – 13 – Arrays with Loops



PHP Tutorial – 14 – Foreach Array Loops



PHP Tutorial – 15 – Functions




PHP Tutorial – 16 – Paramenters in Functions



PHP Tutorial – 17 – Return Values



PHP Tutorial – 18 – Beginning Forms




PHP Tutorial – 19 – More on Forms



PHP Tutorial – 20 – date function



PHP Tutorial – 21 – include function





PHP Tutorial – 22 – Creating a MySQL Database



PHP Tutorial – 23 – Adding Tables to MySQL Database



PHP Tutorial – 24 – Connecting to MySQL Database




PHP Tutorial – 25 – Selecting a MySQL Database



PHP Tutorial – 26 – Testing the Database Connection



PHP Tutorial – 27 – Creating a Computer Game




PHP Tutorial – 28 – Creating Connection and Tables for Game



PHP Tutorial – 29 – Checking Username for Game



PHP Tutorial – 30 – Check for Duplicate Names in Game



PHP Tutorial – 31 – Testing for Spammers and Hackers for PHP Game



PHP Tutorial – 32 – Email Confirmation for PHP Game



PHP Tutorial – 33 – Getting Temporary Data for PHP Game



PHP Tutorial – 34 – Creating Tables for PHP Game



PHP Tutorial – 35 – Deleting Data from Temp Tables for PHP Game



PHP Tutorial – 36 – Introduction to Object Oriented PHP



PHP Tutorial – 37 – Creating Our First Object



PHP Tutorial – 38 – Scopes



PHP Tutorial – 39 – Setters and Getters

No comments:

Post a Comment

Search for Type Of Materials