Hello Coders, today we learn about or gain some knowledge about PHP Superglobal Variables or superglobal variables in PHP. In the start of PHP programming we all use these predefined variables but always confused why these we use, some of the explanation with an example, I will show you today for better understanding. So let’s […]
Show Preloader Using Jquery
Hello Coders, today i will show you how you can Show Preloader Using jQuery. With click on single link you can show a preloader. Follow code below, Source Code of Show Preloader Using jQuery
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
<html> <head> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <script> $(document).ready(function(){ var myVar; //here is a Div ID of the link</strong></span> $( "#myDiv" ).click(function() { myFunction(this); }); //call loader with loader div ID</strong></span> function myFunction(div) { $("#loader").toggle(); $(div).toggle(); setTimeout(function(){ window.location = "https://phpcoder.tech"; }, 3000); } }); </script> </head> <body> <button id="myDiv">Go to Website</button> <div id="loader" style="display:none;padding:150px"> <img src="https://i.pinimg.com/originals/78/e8/26/78e826ca1b9351214dfdd5e47f7e2024.gif" width="250px" height="200px"> </div> </body> </html> |
Copy and paste this code in your code Editor save with .html extension and run on your browser. Code Explanation: […]
mysql_fetch_row() VS mysql_fetch_object() VS mysql_fetch_assoc() VS mysql_fetch_array()
Hello Coders, here are not a very new topic for the experienced people but a very interesting topic for beginners who are always confused with these function as I mention on heading. Today I elaborate all these with some small examples, I think you all understand very well after reading that one time. So let’s […]
PHP CRUD Operation Using MySQLi (Source Code)
We develop a simple core PHP CRUD Operation Using MySQLi With example source code. Which you use to learn PHP basics very quick and easy way. Here I will show you Create, read, update and delete operation with image uploading. Anyone want a complete file in ZIP Check comment below. So from here, we have […]
Send Mail From Localhost in PHP Using XAMPP
Send Mail From Localhost in PHP Using XAMPP, Firstly, PHP is an open-source scripting language, which means where you can change your PHP core files according to your requirements. PHP also has a SENDMAIL inbuilt package, which is used to send mail from a localhost server like XAMPP. The below process explained from the XAMPP […]
Here’s What People Are Saying About Mysql Database Optimization For Better Performance
When we create tables on the MySQL database, we assign values to length, On that time we assign some number to length like, Email– type: varchar and length: 200 (This means you give to email maximum 200 characters and type is a variable character). UserName– type : varchar and length: 100 (This means you give […]
Facts You want to Know About Use Of Mysqli_num_rows() Function
I want to share a situation where I better know about mysqli_num_rows() function. At the time of developing login functionality, this function is very useful. When you create code or write a query for as like, $query = mysqli_query($connection_variable, “SELECT username, password FROM user WHERE username = ‘$username’ AND password = ‘$password’ “); On this […]
How To Check Errors In PHP Form POST Code Tips You Need To Learn Now
When we create some code for fetching some data from the database (who is a beginner in PHP), on first-time code or without practicing of writing the code getting some errors, like nothing is showing on page or data is not coming as our expectation. On that time we are irritated because of not getting […]