Categories
PHP

Ordinal Numbers in PHP

A simple program that I wrote to demonstrate ordinal numbers 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.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

<html>
  <head>
    <title>Ordinal Numbers in PHP </title>
  </head>
  <style type="text/css">
    body {
      font-family: arial;
      size: 15px;
    }
  </style>
 <body>
  <h2> Ordinal Numbers in PHP </h2>
<?php

  function OrdinalNumberSuffix($num) {
    if (!in_array(($num % 100),array(11,12,13))){
      switch ($num % 10) {
        // Handle 1st, 2nd, 3rd
        case 1:  return $num.'st';
        case 2:  return $num.'nd';
        case 3:  return $num.'rd';
      }
    }
    return $num.'th';
  }


for ($i = 1; $i <= 255; $i++){
  echo OrdinalNumberSuffix($i) . "\t";
  if ($i % 10 == 0) {
    echo "\n";
  }
}

?>
</body>
</html>
Categories
PHP

PHP and CSS Login Form

This program is being written by my good friend and fellow software engineer Sir Ernel G. Fadriquilan thank you very much, Sir, for sharing your code to us.

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 lang="en">
<head>
    <title>Document</title>
   <meta name="viewport" content="width=device-width, initial-scale=1">
   <style>
   body{
   padding: 30px; 
    } 
    form{
    margin-top: 120px; 
    padding-top: 20px;
    overflow: auto;
    border: 1px solid black; 
    height: 400px;
    width: 250px;
    } 
  label{
font-size: 13px;
font-weight: bolder;
text-align: center;
   }
    input{
  width:270px;
  height: 54px;
   margin-bottom: 10px; 
  text-align: center;
  border-top: 1px solid  white;
  border-right: 1px solid white;
  border-bottom: 1px solid tomato;
  border-left: 1px solid white;
    } 
  button{
  width: 270px; 
  height: 30px; 
   } 
   p{
   margin-top: 23px; 
   } 
   </style>
</head>
<body>
<h1>This how to use <ins>overFlow:</ins> auto.</h1>
  <form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post">
  <label>Email:</label>
  <input type="email" name="email" placeholder="Email Need"/>
  <label>Password:</label>
 <input type="password" name="password" placeholder="Password Need"/>
  <button type="button">Submit</button>
  <p>This Form is Used php With Form itself.</p>
  </form>
</body>
</html>
Categories
PHP

Subject Grade Solver in PHP

I wrote this program to ask the teacher to give the prelim, midterm, and final grade of the student, and then the program will compute the average of the student and display the result. I am 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
index.php

<!doctype html>
<html>
 <head>
  <title>Subject Grade Solver in PHP</title>
 </head>
 <body>
  <form method="POST" action="">  
   <h2>PHP Example 3.4</h2>
<?php
$ave=0;
$remark=$pre=$mid=$end="";
if(isset($_POST['compute'])){
 $pre=$_POST['prelim'];
 $mid=$_POST['midterm'];
 $end=$_POST['endterm'];
 
 $ave=($pre+$mid+$end)/3;
 
 if($ave < 75){
  $remark="Failed";
 }
 else if($ave >= 75 and $ave <= 80){
  $remark="Below Average";
 }
 else if($ave > 80 and $ave <= 85){
  $remark="Average";
 }
 else if($ave > 85 and $ave <= 90){
  $remark="Above Average";
 }
 else if($ave > 90){
  $remark="Excellent";
 }
}
?>
   <p>Prelim Grade: <input type="text" name="prelim" value="<?=$pre;?>"></p>
   <p>Midterm Grade: <input type="text" name="midterm" value="<?=$mid;?>"></p>
   <p>Endterm Grade: <input type="text" name="endterm" value="<?=$end;?>"></p>
   <p><input type="submit" name="compute" value="Compute"></p>
   <p>
    Average Grade: <?=number_format($ave, 2);?><br/>
    Remark: <?=$remark;?><br/>
   </p>
  </form>
 </body>

</html>
Posted by Jake Rodriguez
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

Echo and Print Statements in PHP

A simple code snippet to show what is the echo and print statement in PHP programming language how to use it in you’re program.

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
echo “Hello, world<br/>”;
echo “This is PHP programming.<br/>”;
print “Hello, world<br/>”;
print “This is PHP programming.<br/>”;

?>

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
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

Categories
PHP

Add Record in PHP and MySQL

This code shows you how to add a record in MySQL database 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

add.php

<html>
<head>
 <title>Add Persons Record in PHP and MySQL</title>
</head>

<body>
<?php

include_once("config.php");

if(isset($_POST['Submit'])) { 
  $fname = mysqli_real_escape_string($mysqli, $_POST['fname']);
    $lname = mysqli_real_escape_string($mysqli, $_POST['lname']);
    $mname = mysqli_real_escape_string($mysqli, $_POST['mname']);
    $gender = mysqli_real_escape_string($mysqli, $_POST['gender']);
    
    $status = mysqli_real_escape_string($mysqli, $_POST['status']);
    $bdate = mysqli_real_escape_string($mysqli, $_POST['bdate']);
    $bplace = mysqli_real_escape_string($mysqli, $_POST['bplace']);
    $address = mysqli_real_escape_string($mysqli, $_POST['address']);
    $nationality = mysqli_real_escape_string($mysqli, $_POST['nationality']);
   
 if(empty($fname) || empty($lname) || empty($gender)) {
    
  if(empty($fname)) {
   echo "<font color='red'>First Name field is empty.</font><br/>";
  }
  
  if(empty($lname)) {
   echo "<font color='red'>Last Name field is empty.</font><br/>";
  }
  
  if(empty($gender)) {
   echo "<font color='red'>Gender field is empty.</font><br/>";
  }
  
  echo "<br/><a href='javascript:self.history.back();'>Go Back</a>";
 } else { 


  $result = mysqli_query($mysqli, "INSERT INTO student(fname,lname,gcode,mname,status,bdate,bplace,address,nationality) VALUES('$fname','$lname','$gender','$mname','$status','$bdate','$bplace','$address','$nationality')");
        
        echo"<script>alert('Data added successfully');window.location.href='index.php'</script>";
  
 }
}
?>
</body>

</html>