How to Make Active or Inactive in PHP With Mysql Database

How to Make Active or Inactive in PHP With Mysql Database

We will Explain How to Make Active or Inactive in PHP With Database. <?php mysql_connect('localhost','root',''); mysql_select_db('database'); if(!empty($_GET['status_id'])&&isset($_GET['status_id'])) { $status_id = $_GET['status_id']; $status = $_GET['status']; $query = "update menus set status = '$status' where id = '$status_id'"; mysql_query($query); header("location:menus.php"); } // Active / De-Active Record ?> <html> <head> <title>Active/Deactive</title> </head> <body> <form method="POST"> <table border="1"> <?php […]
Read Full Article
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 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 Create Cookies in PHP on Browser

How to Create Cookies in PHP on Browser

In this article, you will learn How to Create Cookies in PHP.on Browser A Cookie is used to identify any user. With the help of the PHP, you can retrieve and create the cookie. Syntax:- setcookie(name, value, expire, path, domain, secure, httponly); Create or Retrieve Cookies in PHP Example:- <?php $cookie_name = "user"; $cookie_value = […]
Read Full Article
How to Create Pagination in PHP

How to Create Pagination in PHP

In this article, you will earn How to Create Pagination in PHP. Example:- index.php <?php include('db.php');?> <html> <head> <title>Pagination in PHP</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> </head> <body> <table border="1"> <tr> <th>Sr No.</th> <th>Name</th> <th>Father Name</th> <th>Email</th> <th>Mobile</th> </tr> <?php //Getting default page number if (isset($_GET['pageno'])) { $pageno = $_GET['pageno']; } else { […]
Read Full Article
How to Create ordered or unordered List in the HTML

How to Create List in HTML

In this article, you will learn How to Create ordered or unordered List in the HTML. The HTML have two types of List. ordered List (ol) unordered list (ul) Ordered List <ol type="1"> <li>India</li> <li>USA</li> <li>China</li> <li>England</li> <li>Canada</li> </ol> Output:- India USA China England Canada in ol tag have type is the property. we can […]
Read Full Article
How to use Iframe in HTML

How to use Iframe in HTML

In this article, you will How to use Iframes Using HTML on Web Browsers. Syntax:- <iframe src="URL"></iframe> Example:- <html> <head> <title>Iframe with Target Link</title> </head> <body> <iframe height="300px" width="100%" src="https://huboftutorials.com" name="iframe_a"></iframe> </body> </html> Example of Iframe Removing Border <iframe src="https://huboftutorials.com" style="border:none;"></iframe> How to Create List in HTML Check on Facebook
Read Full Article
How to Play a video on Browser

How to Play a video on web Browser

In this article, you will learn How to Play a video on web Browser. <html> <head> <title>Video</title> </head> <body> <video width="320" height="240" controls> <source src="movie.mp4" type="video/mp4"> <source src="movie.ogg" type="video/ogg"> </video> </body> </html> In the above code <video> tag is used for shows the video. controls are the property of <video> tag which use for show […]
Read Full Article