#Step1: Create just databse in your phpMyAdmin Ex: test_table.sql #Step2: put sql databse file in bin folder Ex: E:wamp64binmysqlmysql5.7.26binDBtest_table.sql # Open CMD# Step3: Change […]
HTML to PDF Example
<!DOCTYPE html> <html lang=”en-US”> <head> <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″/> <title>HTML to PDF Example – PHP Kishan</title> <script src=”https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js”></script> <script src=”https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.5.3/jspdf.debug.js”></script> <script src=”https://html2canvas.hertzen.com/dist/html2canvas.js”></script> <style> .center{text-align: […]
How to set default image on image loaded broken?
<!DOCTYPE html><html class=”” lang=”en-US”><head><meta charset=”UTF-8″ /> <script src=”https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js”></script><script src=”https://unpkg.com/imagesloaded@4/imagesloaded.pkgd.min.js”></script><!– or –><!– <script src=”https://unpkg.com/imagesloaded@4/imagesloaded.pkgd.js”></script> –><style type=”text/css”>.image-thumb {display: inline-block;margin: 10px;}</style></head><body><div id=”product_div”><div class=”image-thumb”><img src=”image/product_01.jpg” class=”thumbnail-img” width=”100″ height=”100″></div><div class=”image-thumb”><img […]
Export Database From MySQL
# Open CMD# Step1: Change the directory folder current directory to mysql bin directory. C:UsersPHPKishan> cd D:wamp64binmysqlmysql5.7.19bin ↲ # Step2: write below command line and […]
reCAPTCHA V3 Example in PHP
<!DOCTYPE html> <html> <head> </head> <body> <?php ## reCAPTCHA V3 key define ## #client-side define(‘RECAPTCHA_SITE_KEY’, ‘reCAPTCHA_site_key’); // define here reCAPTCHA_site_key #server-side define(‘RECAPTCHA_SECRET_KEY’, ‘reCAPTCHA_secret_key’); // define […]
Multiple words of string replace with str_replace in PHP
<?php ## Converting utf8 characters to iso-88591 manually in PHP echo “<meta http-equiv=’Content-Type’ content=’text/html; charset=UTF-8′ />”; function str_replace_char(){ $find = array(‘“’, ‘’’, […]
How to prevent multiple clicks on submit button in jQuery?
<script type=”text/javascript”> function ValidationEvent() { if (name != ” && email != ” && contact != ”){ return true; } […]
Why type=”file” does not Work with Safari Browser? in Contact Form 7
Note: Script Must be written in header <script>jQuery(function() { var input_file = []; jQuery(‘form.wpcf7-form’).on(‘submit’, function() { console.log(“——————————-“); var i = 0; jQuery(‘input[type=file]’).each(function() { if (jQuery(this).val() […]
Detect Safari Browser Using jQuery
<script>if (navigator.userAgent.indexOf(‘Safari’) != -1 && navigator.userAgent.indexOf(‘Chrome’) == -1) { alert(‘Now, You are using safari browser…’); }else{ alert(‘Now, You are not using safari browser…’);}</script>
How to Disable Date on Month Change in Datepicker Using jQuery?
I have created disable dates on change month in jQuery UI Datepicker. The Datepicker shows the disable date in Datepicker. While click on Next or […]