Categories
PHP

Positive and Negative Number in PHP

  In this tutorial, I will show you how to write a program to ask the user to give a number and then the program will check if the given number in positive, zero, or negative number using  PHP programming language.

 I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com 

If you like this video please click the LIKE button,

SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.

<html>

  <head> 

   <title>Positive and Negative Number in PHP </title>

  </head>

  <body> 

      <style type="text/css">

      

      body {

        font-family: arial;

            size: 12px;

      };



        </style>

    <?php

 

     $num_values = $_POST['num_val'];



  function CheckNumber($x) {

    if ($x > 0)

      {$message = "The given number 

                 $x is a Positive number.";}

    if ($x == 0)

      {$message = "The given number 

                 $x is Zero.";}

    if ($x < 0)

      {$message = "The given number 

                 $x is a Negative number.";}

     return $message;

    }





   if(isset($_POST['submit'])) {

                  

      $results= CheckNumber($num_values);

       

      }



 if(isset($_POST['clear'])) {

      $num_values = "";

      $results = "";

    }

?>



  <h2> Positive and Negative Number in PHP </h2>

  <p> Mr. Jake Rodriguez Pomperada,MAED-IT, MIT </p>

<form method="post">

   <p>Give a Number <input 

    type="numeric" name="num_val"

     value="<?php echo $num_values; ?>" autofocus required /></p>

      

<input type="submit" name="submit" 

   title="Click here to compute the cube root. "

   value="Submit" />

   

    &nbsp;&nbsp;&nbsp;

    <input type="submit" name="clear" 

    title="Click here to clear the textbox."

    value="Clear" />

</form>



<?php

   echo $results;

?>

</body>

</html>
Categories
PHP

HTML Forms Input and Display in PHP

 In this tutorial I will show you how to create and use HTML forms with PHP programming language.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me at the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

Your support on my channel is highly appreciated.

Thank you very much.

Program Listing
<html>

  <head> 

   <title>HTML Forms Input and Display in PHP</title>

  </head>

  <body> 

    <style type="text/css">

      

      body {

        font-family: arial;

            size: 12px;

      };

    </style>

   

   <?php

     $display="";

     $firstname = $_POST['firstname'];

     $middlename = $_POST['middlename'];

     $lastname   = $_POST['lastname'];



   if(isset($_POST['submit'])) {

      $display .= "<h2> Display Results </h2>";

      $display .= "First Name  : " .

                  strtoupper($firstname) ."<br/>";

      $display .= "Middle Name : " . 

                  strtoupper($middlename)."<br/>";

      $display .= "Last Name   : " . 

                    strtoupper($lastname)."<br />";

    }



if (isset($_POST['clear'])) {

   $firstname ="";

   $middlename ="";

   $lastname ="";

   $display ="";

   } 

 ?>   

    <h2> HTML Forms Input and Display in PHP </h2>

<form method="post">

   <p>First Name: <input type="text" name="firstname"

    value="<?php echo $firstname; ?>" autofocus

    ></p>

   <p>Middle Name: <input type="text" name="middlename"

    value="<?php echo $middlename; ?>"></p>

   <p>Last Name: <input type="text" name="lastname" 

    value="<?php echo $lastname; ?>"></p>

   <input type="submit" name="submit" value="Submit" />

   &nbsp;&nbsp;&nbsp;

   <input type="submit" name="clear" value="Clear" />

</form>

  <?php



    echo $display;

   ?> 

 </body>

 </html>
Categories
PHP

Fahrenheit To Celsius in PHP

A program that will convert Fahrenheit temperature into Celsius temperature equivalent using PHP programming language

 I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, IT projects, school and application development, programming projects, thesis, and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details. If you want to advertise on my website kindly contact me also in my email address also. Thank you.
My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.My mobile number here in the Philippines is 09173084360. My telephone number at home here in Bacolod City, Negros Occidental Philippines is +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking, and Arduino Project development at a very affordable price. My personal website is http://www.jakerpomperada.comMy programming website is http://www.jakerpomperada.blogspot.comI am also a book author you can purchase my books on computer programming and information technology in the following links below.https://www.unlimitedbooksph.com/

Program Listing

<?php
$cel=$fah=0;
if(isset($_POST['convert'])){
	$fah=$_POST['fah'];
	$cel=($fah-32)*5/9;
}
?>
<!doctype html>
<html>
	<head>
		<title>Fahrenheit To Celsius in PHP</title>
	</head>
	<body>
		<form method="POST" action="">
			<h2>Fahrenheit To Celsius in PHP</h2>		
			Fahrenheit: <input type="text" name="fah" value="<?=$fah;?>" size="5"/> =
			<input type="text" name="cel" value="<?=$cel;?>" size="5"/> Celsius
			<br/><br/>
			<input type="submit" name="convert" value="Convert"/>
		</form>
	</body>
</html>
Categories
Perl

String Upper Case in Perl

I wrote this Perl program to ask the user to give a string and then the program will convert the given string into the uppercase format.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, IT projects, school and application development, programming projects, thesis, and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details. If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com

My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.unlimitedbooksph.com/


Program Listing

# uppercase_string.pl
# Author   : Jake R. Pomperada,MAED-IT,MIT
# Date     : April 8, 2020   Wednesday  6:12 PM
# Location : Bacolod City, Negros Occidental
# Email    : jakerpomperada@gmail.com
# Website  : http://www.jakerpomperada.com

    print("\n");
    print("\tString Upper Case in Perl");
    print("\n\n");
  
    print("\tGive a String : ");
    chomp($str=<STDIN>);

    $display = uc $str;

    print("\n\n");
    print "\tThe upper case equivalent of the string is $display.";
    print("\n\n");
    print("\t\tEnd of Program");

    print("\n\n");
Categories
PHP

Grade Checker in PHP

A simple grade checker program that I wrote using PHP programming language.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, IT projects, school and application development, programming projects, thesis, and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details. If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com

My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.unlimitedbooksph.com/

Program Listing

<!doctype html>
<html>
	<head>
		<title>Grade Checker in PHP</title>
	</head>
	<body>
		<form method="POST" action="">		
			<h2>Grade Checker in PHP</h2>
<?php
$grade="";
$remark="?";
if(isset($_POST['remark'])){
	$grade=$_POST['grade'];
	if($grade < 75){
		$remark="Failing Grade!";
	}
	else{
		$remark="Passing Grade!";
	}
}
?>
			<p>
				Final Grade: <input type="text" name="grade" size="8" value="<?=$grade;?>"/>
				<input type="submit" name="remark" value="Remark"/>
			</p>
			
			<p>Remark: <?=$remark;?></p>
		</form>
	</body>
</html>

Categories
PHP

PHP Concatenating Operator

Here is a simple code to demonstrate how to concatenate the two string in PHP.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, IT projects, school and application development, programming projects, thesis, and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details. If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com

My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.unlimitedbooksph.com/

Program Listing

index.php

<?php
$firstname=”James”;
$lastname=”Tan”;
echo “My name is ” . $firstname . ” ” . $lastname; 
?>

Categories
PHP

Hello World in PHP

A simple program of how to write a hello world using PHP as my programming language.


I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, IT projects, school and application development, programming projects, thesis, and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details. If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is +63 (034) 4335675.

Here in Bacolod City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com

My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.

https://www.unlimitedbooksph.com/


Program Listing

<html>
	<head>
		<title>PHP Hello World </title>
	</head>
	<body>
		<?php
		echo "Hello, world.  My First PHP File.";
		?>
</body>
</html>


Categories
Perl

Odd and Even Numbers Using For Statement in Perl

I wrote this program to display the list of odd and even numbers using for loop statement in Perl programming language.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, IT projects, school and application development, programming projects, thesis, and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.
My mobile number here in the Philippines is 09173084360.My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.


Here in Bacolod City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking and Arduino Project development at a very affordable price.
My personal website is http://www.jakerpomperada.com

My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.
https://www.mindshaperspublishing.com/
https://www.unlimitedbooksph.com/

Sample Program Output

Program Listing

# odd_even_numbers_for.pl
# It will display list of odd and even numbers using for loop statement
# Author   : Jake R. Pomperada,MAED-IT,MIT
# Date     : April 5, 2020   Sunday  2:26 PM
# Location : Bacolod City, Negros Occidental
# Email    : jakerpomperada@gmail.com
# Website  : http://www.jakerpomperada.com
print("\n");
print("\tOdd and Even Numbers Using For Statement in Perl");
print("\n\n");
for ($i=0; $i <= 10; $i++) {
    if ($i % 2 == 0) {
	    print "\t$i is an EVEN Number.";
	    print "\n";
        }
    else {
 	print "\t$i is an ODD Number.";
	print "\n";
    }
}  
print("\n");
print("\t\t\tEnd of Program");
print("\n\n");
Categories
PHP

Foreach Statement in PHP

 I wrote this program to show how to use foreach statement using PHP programming language.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, IT projects, school and application development, programming projects, thesis, and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.
My mobile number here in the Philippines is 09173084360.My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.


Here in Bacolod City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking and Arduino Project development at a very affordable price.
My personal website is http://www.jakerpomperada.com

My programming website is http://www.jakerpomperada.blogspot.com


I am also a book author you can purchase my books on computer programming and information technology in the following links below.
https://www.mindshaperspublishing.com/
https://www.unlimitedbooksph.com/

<?php
$grades[]=80;
$grades[]=81;
$grades[]=82;
$grades[]=83;
$grades[]=84;
$grades[]=85;

echo "<h4>Foreach Statement in PHP </h4>";
foreach($grades as $result){
  echo "Student Grade :  $result<br>";
}
echo "<p>End of Program</p>";
echo "<br>";
?>
Categories
PHP

Employees Records Pagination and Printing of Reports Using PHP and MySQL

 wrote this program for my capstone project in my Masters of Information Technology studies. This program will allow the user to search and print employees records using PHP,MySQL,JQuery and Data Tables. I hope that this code will help you in your web development projects.

I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, IT projects, school and application development, programming projects, thesis, and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.
My mobile number here in the Philippines is 09173084360.My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.


Here in Bacolod City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking and Arduino Project development at a very affordable price.
My personal website is http://www.jakerpomperada.com

My programming website is http://www.jakerpomperada.blogspot.com


I am also a book author you can purchase my books on computer programming and information technology in the following links below.


https://www.mindshaperspublishing.com/
https://www.unlimitedbooksph.com/

Sample Program Output
Sample Program Output
Printing of Reports of Employees Records

Download the Complete Source Code Here For FREE