Tag Archives: sort

How to Avoid Duplicate Content Penalty

avoid-duplicate-content




Is it possible to publish some content from other sources or sites without any Google penalty Avoid Duplicate Content Penalty? With the introduction of Google Panda algorithm, more and more webmasters are fearing to publish content from other blogs or websites. Google Panda is meant to fight against low quality content, which also covers duplicate content. With every Panda update, more and more sites are being penalized. Recently, Matt Cutts, the head of Google’s web-spam team has released a new […]

Sorting using MySQL ORDER BY Statement

Sorting using PHP MySQL ORDER BY Statement




We use Sorting using MySQL  Order by statement in a recordset.The ORDER BY keyword sort the records in ascending order by default. If you want to sort the records in a descending order, you can use the DESC keyword. SELECT column_name(s) FROM table_name ORDER BY column_name(s) ASC|DESC You can sort on multiple columns, and you can sort different columns in different directions This query would return me the results ordered by the species in the order I need and then sort […]

Php Interview Questions and Answers – Part 7

images




This is the 7th part of Php Interview Questions and Answers. 1- How can we destroy the session, how can we unset the variable of a session? session_unregister() – Unregister a global variable from the current session session_unset() – Free all session variables 2- What are the different functions in sorting an array? Sorting functions in PHP: asort() arsort() ksort() krsort() uksort() sort() natsort() rsort() 3- How can we know the count/number of elements of an array? 2 ways: a) sizeof($array) […]

Php Interview Questions and Answers – Part 2

job-interview-question




1- Why doesn’t the following code print the newline properly? <?php $str = ‘Hello, there.nHow are you?nThanks for visiting techpreparation’; print $str; ?> Because inside the single quotes the n character is not interpreted as newline, just as a sequence of two characters – and n. 2- Would you initialize your strings with single quotes or double quotes? Since the data inside the single-quoted string is not parsed for variable substitution, it’s always a better idea speed-wise to initialize a […]

5 plus 5 SEO Tips For Bloggers

seo blogger




Are you a serious blogger, who wants to earn some extra bucks for pocket money? Or, planning to make blogging as a full-time career? If this is the case, then your blog needs more search engine visibility and more clicks. And you can safely guess “more clicks means more revenue.” Now, the question is – How can you achieve more search engine visibility? It’s simple – Optimize your blog content for search engines, or S-E-O. Without much ado, lets dive […]

WordPress Security Threats That Want You Know

WordPress_Security_Threats




When it comes to my online activity, security is something I have always been fairly conscious of. But in my opinion, making sure that your WordPress site is secure is not something that you can ever do too much of. That fact was recently driven home to me when Limit Login Attempts (which I have installed on my blog) started reporting multiple login attempts from more than one IP address. I also discovered that someone had attempted to login to my Facebook account. With those recent […]

Best Widget Plugins for Sidebar

wp-widget1




What do you have in your blog sidebar? If you have a blog theme that supports widgets, the chances are you have at least one or two widgets in your sidebar. Are you using too many widgets? An overcrowded sidebar is a commonly ignored one and is sure to annoy most of your visitors. However, a sidebar with not enough can be just as bad. It’s great to have a clean sidebar, but if you’re missing the essentials then you’re basically […]

Sort Select list items using jQuery

dropdown-sort




In this Article, you find out jQuery code to sort dropdown list items. The items can be sorted by item’s text and also by item’s value in ascending or descending order. First create dropdown list items in html <select id="ddlList"> <option value="3">Three</option> <option value="1">One</option> <option value="0">Zero</option> <option value="2">Two</option> <option value="8">Eight</option> </select> <br/><br/> <input type="button" id="btnSort" Value="Sort Dropdown By Text" /> <input type="button" id="btnSortVal" Value="Sort Dropdown By Value" /> With above html code we create dropdown list. to give it style […]

Sort Array in PHP

sortarray




If you’ve worked with PHP over any length of time, you’ll already be familiar with arrays — data structures that allow you to store multiple values in a single variable and operate on them as a set. Often, developers find it useful to sort these values, or array elements, into a sequence different from the default one used by PHP. To this end, PHP offers a wide variety of array sorting functions, which allow you to manipulate the arrangement of […]