You can also visit my personal guide site here http://emisyl.com
Latest programming tuts are posted here as my guide.
I hope you can get some important programming practices posted here http://emisyl.com
Thanks
Showing posts with label Php. Show all posts
Showing posts with label Php. Show all posts
Monday, October 9, 2017
Thursday, December 29, 2011
Ajax + Php, Pagination/Paginator
I was bored last night, so i decided to create a pagination simple program using sajax here's a simple example i created.
below is the function.
You can also check live demo here.
Download pagination
below is the function.
You can also check live demo here.
Download pagination
Posted by
John
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 statementif ($authenticated){echo 'YES';}else{echo 'NO';}// same with 1if ($authenticated) { echo 'YES'; } else { echo 'NO'; }// [2] lil bit shortcutif ($authenticated)echo 'YES';elseecho 'NO';// 3 the shortcutecho $result = ($authenticated) ? 'YES' : 'NO';
Posted by
John
Saturday, February 7, 2009
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
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
Posted by
John
Wednesday, February 4, 2009
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
You can post comments in my program.
You can download my example below.
Download File
Posted by
John
Monday, January 26, 2009
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.
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
Posted by
John
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
Posted by
John
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
Posted by
John
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
Posted by
John
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
Posted by
John
Subscribe to:
Posts (Atom)