PHP Array
This is one of the most questions that can be seen over the internet among programmers. We can't deny the fact that array is one of the easiest and fastest way in programming. PHP for array is one of the best topic and idea that a programmer must have to know. This is because, array is one of simplest and easier way to implement use system or website rather. It also enable your system to load faster and process all the data faster compare to manually declaring all variables and values. You can really appreciate array especially in big systems development. If you want to know more about PHP for array or PHP array or want some sample programs just try to click the given link in this article and you will be redirected to the site. Thank you.
How to add two numbers using PHP
<html>
<head>
<title>Title goes here</title>
</head>
<body>
<form action="" method="post">
<label>Enter Num1:</label>
<input type="text" name="num1" /><br>
<label>Enter Num2:</label>
<input type="text" name="num2" /><br><br>
<input type="submit" name="btn_submit" value="Add">
</form>
<?php
if(isset($_POST['btn_submit']))
{
$num1 = $_POST['num1'];
$num2 = $_POST['num2'];
$total = $num1+$num2;
echo "The total value is: ".$total;
}
?>
</body>
</html>
If there are some comments or questions about this article just CLICK THIS LINK to be redirected to the forum page.
How to declare a variable in PHP
It is one of the most common error of a programmer in PHP which is on how to declare a variable. Every programming language recquires varaiable declaration because variables are being use to store your temporary data. Sometimes programmers for got and sometimes failed to declare a variable in which it causes an error to their programs. The dollar sign symbol ($) uses to declare a variable in PHP. In other web programming language such as Coldfusion it uses double number sign (##). For PHP case $ is the only one that being use to declare a variable and no other than. Below is the sample of variable declaration and together with its output.
PHP Code:
<?php
$firstname = "John Larry Limbo";
$middlename = "Abellanosa";
$lastname = "Limbo";
echo "My firstname is: ".$firstname."<br/>";
echo "My middlename is: ".$middlename."<br/>";
echo "My lastname is: ".$lastname;
?>
Dont for get to put the php opening ang closing tags before you run the code cause it might cause an error on your program. As you notice I use dot(.) on my code. The function of this dot is to concatenate the string “ My firstname is: ” with the value of the variable $firstname and same with the other. Observe carefully the ouput below or you may try it with your own. Just send me a comment if the code does not run or it returns an error.
Sample ouput:
If there are some comments or questions about this article just CLICK THIS LINK to be redirected to the forum page.
Moodle 2.0 Customizing - ELMS



Student Management System - PHP
This is one of my new creation which is the Student Management System using the PHP language. This is our project during our System and Analysis and Design. Together with my group Ms. Shinette V. Jamora, Mr. Dave Angelo Gutierrez and myself made and design the concept of this system. Here is a sample login design of the system.

We also choose to have the mySql database to be the back-end database of the system. As of now we are trying to make the design of the system to be compatible with different types of browser including the IE8. Actually the design is currently under testing stage.
We also use jQuery in this system, CSS also and a little bit of scripting languages. In making and coding also we use our own coding standard we create a mini MVC or Model View Controller framework in order for us to make the coding more easier and faster, because we only have 2 months to finish this including already the planning, designing, data gathering, testing and debugging and then the final defense for the finale.
Home interface is being shown below:

PHP - Online Enrollment System
and this is some of its functions and interfaces, actually this is the admin page which the admin has all the access of all the accounts of the employee.
If you were interested with my post or you want me to help you even though a little in your project then just
dropped a comment and your contact email or your yahoo messenger ID.
How to use Form Select Statement in PHP
html>
html>
How to use HTML Form in PHP
<html>
<head>
<title>Title goes heretitle>
head>
<body>
<form action="welcome.php" method="post">
<label>Name:label><input type="text" name="name"><br/>
<label>Age:label><input type="text" name="age"><br/>
<input type="submit" name="btn_submit">
form>
body>
html>
and if we were going to run the code above and then this would be the output of the code that we have made above in which it has a two input fields in which this field will be use in getting the value that comes from the user and also the submit button.<html>
<head>
<title>Title goes heretitle>
head>
<body>
Welcome echo $_POST['name']; ?>.<br/>
You are echo $_POST['age']; ?> years old.
body>
html>

How to use For Loop in PHP
Here is a sample of using a for loop in a PHP language.
Code:
<?php
for($var_x=1; $var_x<=5; $var_x++)
{
echo "Number: ".$var_x."<br/>";
}
?>
How to use While Loop in PHP
This is a tutorial on how to use a while loop in a PHP. The output will be the same if you were going to use a for loop, the only difference is only the code itself and especially the concept of each loop and how this loop performs its action when the programmer run his/her program. Below is a sample illustration on how to code while loop in PHP.
PHP Code:<?php
$var_x = 1;
while($var_x <= 5)
{
echo "Number: ".$var_x."<br/>";
$var_x++;
}
?>You can try this with your own. If there are some comments or questions about this article just CLICK THIS LINK to be redirected to the forum page.
What is PHP?
PHP stand for PHP Hypertext Preprocessor. PHP also known as a recursive acronym would you want to ask why recursive? It is because recursive is an acronym in which the first letter of the first word represented but the acronym is the acronym itself.
PHP also known as an open source, server side and a HTML embedded scripting language. When we say embedded scripting language it is a language in which it is a kind of language in where HTML and PHP codes can be combined. It is a server side client, because PHP is being process in the server and not in the browser. E,g A user request a page. As you notice that when you view source the page and then only pure HTML code are you going to see, it is because PHP process first in the server and the server will only send to the user or to the client the HTML form.
