Posted Date:27-07-2017 In this post we will explain show the accordion panels based on drop down values .   Step 1: Include jQuery  Plugin and css <source src=”http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js”></source> <source src=”https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js”></source> <link rel=”stylesheet” href=”https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css”> Step 2: Add the following script $(function() { var divs = $(‘#accordion > div’).hide(); $(document).on(‘change’, ‘#select_value’, function(e)… Continue Reading Show the accordion panels based on drop down values

Posted Date:11-07-2017 In this post we will explain PHP ternary operator. Example: In this example we are using if else condition <?php $a=16; if($a>18) { echo “Eligible For Vote”; } else { echo “Not Eligible For Vote”; } ?> In the above example $a value is greater than 18 eligible… Continue Reading PHP ternary operator

Posted Date:11-07-2017 In this we will explain mysql_query insert using custom user created function Stpe 1:Create basic html page with form <form method=”POST” action=”” id=”addproduct-form”> <label for=”hd-desc”>Select Category</label> <select name=”cat_id” id=”cat-id”> <option value=”” selected=””>Select Category</option> <option value=”8″>mobile</option> <option value=”9″>Tv</option> <option value=”10″>XYZ</option> <option value=”11″>mobile2</option> <option value=”12″>Tv2</option> <option value=”13″>Tv 3</option> </select> <label… Continue Reading insert query in php using function

Posted Date:20-06-2017 In this post we will explain dynamically set codeigniter baseurl. Step 1: navigate to application/config and open config.php file edit $config[‘base_url’] using following code. $config[‘base_url’] = ((isset ( $_SERVER [‘HTTPS’] ) && $_SERVER [‘HTTPS’] == “on”) ? “https” : “http”); $config[‘base_url’] .= “://” . $_SERVER [‘HTTP_HOST’]; $config[‘base_url’] .=… Continue Reading Dynamically set CodeIgniter Base URL

Posted Date:19-06-2017 In this post we will explain Make the <li class> to be Active when click menu Step 1: Include jQuery Plugin necessary  jquery files. <source src=”http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js”></source > <source src=”https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.4/js/bootstrap.min.js” type=”text/javascript”></source > <source src=”https://cdnjs.cloudflare.com/ajax/libs/admin-lte/2.3.11/js/app.min.js” type=”text/javascript”></source > Step 2:Add the following jquery script code for dynamic active class var url = window.location.href; // for sidebar… Continue Reading Make the menu to be Active when click menu

Posted Date:04-03-2017 In this Post we will explain how to use jquery custom rule,remote,extension validation in html form.   Step 1:Create mysql table name as users using following code — phpMyAdmin SQL Dump — version 3.5.2.2 — http://www.phpmyadmin.net — — Host: 127.0.0.1 — Generation Time: Jun 15, 2017 at 09:21 AM… Continue Reading jquery custom rule,remote,extension validation

Date Posted:14-06-2017 In this post  we will explain codeigniter importing data using excel file and PHPExcel libary I assume that you are configure or setup the codeigniter step1:Download PHPExcel libarry from it’s github repository or you can download it from PHPExcel official website. Dwonload PHPExcel library Dwonload PHPExcel library from… Continue Reading codeigniter importing data using excel file

Date Posted:13-06-2017 In this post  we will explain export data from database using PHPExcel libary I assume that you are configure or setup the codeigniter Step 1:Create the mysql table currency,use following code — phpMyAdmin SQL Dump — version 3.5.2.2 — http://www.phpmyadmin.net — — Host: 127.0.0.1 — Generation Time: Jun… Continue Reading Export data from Database to Excel Sheet(.xls) using Codeigniter

Date Posted:07-06-2017 In this we will explain jquery validation on two forms in different forms Step 1:Add the necessary jquery file in html head section after body tag add the following code <form id=”form1″>Step #1 <input type=”text” name=”field1″ /><br /> <button type=”button” id=”gotoStep2″>Go to step 2</button> </form> <form id=”form2″>Step #2… Continue Reading JQuery Validation on Two Forms in different Tabs

Date Posted:02-06-2017 In this post  we will explain create new library in codeigniter for currency conversion,symbol I assume that you are configure or setup the codeigniter Step 1:Create the mysql table currency,use following code — phpMyAdmin SQL Dump — version 3.5.2.2 — http://www.phpmyadmin.net — — Host: 127.0.0.1 — Generation Time:… Continue Reading Currency Conversion and Symbol library in CodeIgniter