How to Make Fees Receipt in PHP Using Mysql Database

How to Make Fees Receipt in PHP Using Mysql Database

In this article, you will learn How to Make Fees Receipt in PHP Using Mysql Database. index.php <html> <title>Add fees</title> </head> <body> <h1><a href="add.php">Add receipt</a> &nbsp &nbsp &nbsp <a href="search.php">Record</a></h1> <form method="POST" oninput="x.value=parseInt(a.value)+parseInt(b.value)+parseInt(c.value)" action="fees.php"> <input type="date" name="date"><br/><br/> Name <input type="text" name="name"><br/><br/> Registration No. <input type="number" name="rno"><br/><br/> Course <select name="course"> <option>Select Course</option> <option value="PHP">PHP</option> <option value="JAVA">JAVA</option> […]
Read Full Article
How to Create Dynamic Dependent Select Box

How to Create Dynamic Dependent select box using ajax

You need a dynamic dependent select box. We will explain how to create a dynamic dependent select box in PHP, jquery and ajax. index.php <?php include_once 'dbconfig.php'; ?> <html> <head> <title>Dynamic Dependent Select Box using Ajax</title> <script type="text/javascript" src="jquery-1.4.1.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $("#loding1").hide(); $("#loding2").hide(); $(".country").change(function() { $("#loding1").show(); var id=$(this).val(); var dataString = 'id='+ id; […]
Read Full Article
How to Create Database and tables in MySql

How to Create Database and tables in MySql

In this article will explain How to Create Database and tables in MySql. Create a Database CREATE DATABASE DATABASE_NAME; In MySql, if you want to display a list of all databases to run the below query. SHOW DATABASES; Create Tables: To create a table in MySQL run below query. CREATE TABLE IF NOT EXISTS table_name(col type, […]
Read Full Article
How to Print Div in PHP using For Loop

How to Print Div in PHP using For Loop

In this article, you will learn How to Print Div in PHP using For Looping. <html> <head> <title>div's</title> <style> .ak{ heigth:150px; width:50px; border:1px solid; } </style> </head> <body> <form method="POST"> <h1 name="first"><?php for($i=0;$i<=5;$i++) { echo '<div class="ak">' .$i . '</div>'.'<br>' ; } ?></h1> <h1 name="second"><?php for($j=5;$j>=1;$j--) { echo '<div class="ak">' .$j . '</div>'.'<br>' ; } […]
Read Full Article
How to Create mail System in PHP using HTML form

How to Create a mail System in PHP using HTML form

On any website have a contact page. The contact page has a form to fill and mail will deliver to the administrator. so in this article, you will learn How to Create a mail System in PHP using HTML form. contact.php <html> <head> <title>Contact US</title> </head> <body> <form method="POST" action="mail.php"> <input type="text" name="name" placeholder="Enter Your […]
Read Full Article
How to Get Current Indian Time in PHP

How to Get Current Indian Standard Time using PHP

In this article, we will explain How to Get Current Indian Standard Time using PHP on web browser follow below code Firstly Set Indian time zone: date_default_timezone_set('Asia/Kolkata'); Now create a PHP date or time function : date( 'd/m/Y h:i:s', time ()); Full Code in PHP <?php date_default_timezone_set('Asia/Kolkata'); $currentTime = date( 'd-m-Y h:i:s A', time () […]
Read Full Article
Looping Statement in PHP

Looping Statement in PHP

In this article, we will explain the Looping statement in PHP. The looping statement is used for a specific number of times with the condition. Following Looping Statements are used in PHP For Loop While Loop Do While Loop Foreach Loop Break and Continue Loop How to Print Div in PHP using For Loop Read […]
Read Full Article
How to Use For Loop Statement in PHP

How to Use For Loop Statement in PHP

In this article, you will learn How to Use For Loop Statement in PHP. Syntax: for(initialization;condition;increment) { code to be executed } Example:- <?php for($i=0;$i<=10;$i++){echo "The Number is ".$i."<br/>"; } ? > Output: The Number is 0 The Number is 1 The Number is 2 The Number is 3 The Number is 4 The Number […]
Read Full Article