These are the main theme pages on wordpress. index.php :- for index page. home.php :- for blog page for some condition. search.php :- For display the search result page. single.php :- for single post page. page.php :- display the static pages. category.php :- Display the category page. tag.php :- For display the tags page. author.php
Write Case Statement on Mysql.
Let’s see how to write case statement on mysql using a example. let’s you have a table emp on your database like this Now write the below query code on sql window SELECT *, (CASE WHEN salary=3000 THEN ‘three thousand’ WHEN salary = 10000 THEN ‘Ten Thousand’ ELSE ‘zero’ END) AS result_salary FROM `emp`; get
How to create URL structure for SEO friendly using htaccess ?
This post shows how to create a redirect from a link to another link with query string or create SEO friendly URL structure. If you want to get this link /index.php?name=Rupam page open as user/query_string_name/quesry_string_value then you should follow steps 1. Create a page with a .htaccess extension on your root. 2. Then you have to
How to make MVC to HMVC on Codeigniter?
This post shows you how to make HMVC structure on CodeIgniter using Third Party. Please follow these steps. 1. Download the third party zip for making the HMVC from http://rupamhazra.com/download/MX.zip 2. Extract and then put the MX folder in application/third_party folder like below screenshot. 3. Download another zip from this link http://www.rupamhazra.com/download/Loader&Router.zip and Extract in application/core
How to get the value of multiple hidden field by name using Jquery ?
This post shows you that how to get the value of multiple hidden field by name property. Let’s see an example. <input type=”hidden” name=”hidden_data[]” value=”3180″> <input type=”hidden” name=”hidden_data[]” value=”3181″> <input type=”hidden” name=”hidden_data[]” value=”3182″> <input type=”hidden” name=”hidden_data[]” value=”3183″> Just execute the below script. $(‘input[name=”hidden_data[]”]’).each(function(k,v){ alert(v.value); });
How to get the checked value of multiple checkbox by name using Jquery ?
This post shows you that how to get the checked value of multiple checkbox by name property. Let’s see an example. <input type=”checkbox” name=”checkbox_name[]” value=”Checkbox_1″> <input type=”checkbox” name=”checkbox_name[]” value=”Checkbox_2″> <input type=”checkbox” name=”checkbox_name[]” value=”Checkbox_3″> <input type=”checkbox” name=”checkbox_name[]” value=”Checkbox_4″> Just execute the below script. $(‘input[name=”checkbox_name[]”]:checked’).each(function(k,v){ alert(v.value); }); If you want to get the value of multiple checkbox
How to get the nth child without any selector in Jquery ?
This post shows you that how to get the any child without any selector like id,class or else. Let’s see some examples. Example 1: Using ul & li <ul> <li>Cofee </li> <li>Tea </li> <li>Beer </li> <li>Water </li> </ul> Case 1 : If you want to get the 2nd child text of ul $(‘ul > :nth-child(2)’).text();
What is Transaction and how to implement transaction in php using mysqli ?
A transaction is a sequential group of database manipulation operations, which is performed in a sequential manner. In other words, a transaction will never be complete unless each individual operation within the group is successful. If any step or process within the transaction fails, the entire transaction will fail. Properties of Transactions Atomicity − All operations
What is Database index and why it is used ?
A database index is a structure that improves the speed of searches/queries operations in a table.Basically, it is used for querying optimization. Indexes can be created using one or more columns, providing the basis for the efficient ordering of access to records. Note: Update and Insert operation a table with indexes takes more time than
How to removed index.php from url in CodeIgniter ?
If you want to remove index.php from url then you must follow these steps.