Posts

How to make search bar which search value from database example

Image
Like Above search. Step 1. Make HTML file as follow. <html>   <head>     <title>Ajax Search Box using PHP and MySQL</title>     <!-- script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script -->    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>     <!--script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script -->     <script src="typeahead.min.js"></script>     <script>     $(document).ready(function(){    $('input.typeahead').typeahead({         name: 'typeahead', remote: 'search.php?query=%QUERY',        // limit : 10     }); /*var search = new Bloodhound({    ...

How to make Login page for admin-panel using PHP and Mysql.(Dynamic web page)

Step 1 Create table in mysql. Table structure is as follow: CREATE TABLE IF NOT EXISTS `logindetails` (   `id` int(11) NOT NULL AUTO_INCREMENT,   `loginid` varchar(20) NOT NULL,   `password` varchar(20) NOT NULL,   PRIMARY KEY (`id`) ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1; Step 2 Html code   <div class="row">         <div class="well col-md-5 center login-box"> <h2>Welcome to (Admin Panel)</h2>             <div class="alert alert-info">                 Please login with your Username and Password.             </div>             <form class="form-horizontal" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" id="defaultForm" enctype="multipart/form-data">             ...

How to convert HTML table to Excel using javascript and php Code

Step 1 Write the following code <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head>     <title></title>     <script type="text/javascript" src="js/jquery.js"></script>     <script type="text/javascript" src="Scripts/jquery.battatech.excelexport.js"></script> </head> <body>     <div id="dv">         <table id="tblExport" style="border: 1px solid black;">             <thead>                 <tr>                     <th>#</th>                     <th>First Name</th>                     <th>Last Name</th>               ...

How to make countdown Timer using PHP,Ajax

How to Make Count Down Timer Using PHP And Ajax(java script) Step 1 Write the below code in test.php. Write Code for using Java script.and Ajax <script> $(document).ready(function(){   setInterval(function() { // alert('done');         $('#mydiv').load( 'timer.php ');     }, 3000); $.ajaxSetup({ cache: false }); }); </script> html>   <head>      <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>      <script type="text/javascript">           $(document).ready(function () {              $('#mydiv').delay(1000).load('timer.php');           });       </script>   </head>   <body>      <div id="mydiv"></div>   <body> </...

How to display images from database to Web page.

These are the step to which display the webpage image from the database Step 1. Create table in Database. CREATE TABLE IF NOT EXISTS `images` (   `id` int(11) NOT NULL AUTO_INCREMENT,   `name` varchar(50) NOT NULL,   `image` longblob NOT NULL,   PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; Step 2 PHP code <?php   //Database connection  set by config file include_once('include/config.php'); ?> <html>     <body>         <form method="post" enctype="multipart/form-data">         <br/>             <input type="file" name="image" />             <br/><br/>             <input type="submit" name="sumit" value="Upload" />         </form>         <?php ...

post multiple forms with a single button press with html

<div class="col-sm-12"> <h3>Information</h3> <div class="text text2"> <ul> <li><a href=".cash" data-toggle="tab">total </a></li> <li><a href=".cheque" data-toggle="tab">Bank</a></li> <li><a href=".neft" data-toggle="tab">Net Banking</a></li> <!--li><a href="#banking" data-toggle="tab">Net Banking</a></li> <li><a href="#debit" data-toggle="tab">Debit Card</a></li> <li><a href="#card"data-toggle="tab" >Credit Card</a></li> <li><a href="#atm" data-toggle="tab" >ATM</a></li> <li><a href="#imps"data-toggle="tab" >IMPS</a></li--> </ul> </div> </div>  <div class...

What is SEO ?

SEO (Search Engine Optimization) is defined as any action or adjustment, also known as Optimization that you perform on your site for the purpose of improving the volume and quality of traffic to your site from search engines by utilizing search results for targeted keywords. Relevance - the degree to which the content of the documents returned in a search matched the user's query intention and terms. Popularity - the relative importance, measured via citation (the act of one work referencing another documents) of a given document that matches the user's query. SEO can be considered to be divided into two categories: On-Page Optimization:  Changes or additions that we make on the website to target a keyword and improve website rankings for that keyword. Off-Page Optimization:  Efforts done not on the website itself but on other websites and online communities to make a website look popular in the eyes of search engines. For e.g., building links to the website.