pagination with scroll using ajax

HTML PAGE IS HERE: IN CODEIGNITER:: <!DOCTYPE html> <html lang=”en”> <head> <meta charset=”utf-8″> <title>Show More Testing</title> <style type=”text/css”> ::selection{ background-color: #E13300; color: white; } ::moz-selection{ background-color: #E13300; color: white; } ::webkit-selection{ background-color: #E13300; color: white; } body { background-color: #fff; margin: 40px; font: 13px/20px normal Helvetica, Arial, sans-serif; color: #4F5155; } a { color: #003399; … Read morepagination with scroll using ajax

count duplicate values in array in php

<?php $name= array(“raj”,”dinesh”,”mota”,”kunal”,”sam”,”kunal”,”raj”,”raj”); $res = array_count_values($name); print_r($res); It shows no. of duplicates found against. like: raj => 3 kunal => 2 dinesh => 1 etc ?>

Disable ctrl+c,ctrl+u and right click

Disable in the whole document from copy,ctrl+u and right click. <!– Disable ctrl+u & ctrl+c and prevent Right Click –> <script  type=”text/javascript” src=”http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.min.js”></script> <script type=”text/javascript”> $(document).ready(function() { $(document).bind(“contextmenu”,function(e) { return false; }); }); </script> <script type=”text/javascript”> var isCtrl = false; document.onkeyup=function(e) { if(e.which == 17) isCtrl=false; } document.onkeydown=function(e) { if(e.which == 17) isCtrl=true; if((e.which == … Read moreDisable ctrl+c,ctrl+u and right click