Friday, 6 December 2013

Disable back button of your browser using javascript(Cross browser compatible)


It is an interesting browser hack and which uses hash values to prevent the default functionality of browser back button.But it and can be very annoying to use in your website and may be your user can dump your website . So please don't use that until if you have a really valid reason for it.

just at the top of your script .It set the hash value to 'no-back-button' at the time of page load.
window.location.hash="no-back-button"; 

Wednesday, 4 December 2013

Ubuntu 12.04 can’t connect to the internet


It seems this is a common problem with an easy fix.
sudo apt-get remove --purge resolvconf
After that Restart your Networ, Using following command.
sudo /etc/init.d/networking restart
OR
sudo service network-manager restart

Friday, 22 November 2013

Where Should The Google Analytics Tracking Code to Be Placed?


The Analytics snippet is a small piece of JavaScript code that you paste into your pages. It activates Google Analytics tracking by inserting ga.js into the page. To use this on your pages, copy the code snippet below, replacing UA-XXXXX-X with your web property ID. copy and paste the code into the body of the page, right before the closing </body> tag

Wednesday, 20 November 2013

How to block Inappropriate words with javascript validation


This post about how to block Inappropriate/bad words content with java script validation.
Its a simple and easy to implement program hope you enjoy it.



Tuesday, 19 November 2013

Foreach equivalent in javascript


foreach function in PHP is very nice and easy to use,I am explain about equivalent function in javascritpt
<script language="javascript" type="text/javascript">
var new_array = new Array('knowledge','corner','srinu','chilukuri');
for (var key in new_array)
{     alert(new_array[key]); } </script>

Tuesday, 12 November 2013

How to use MySQLi_connect in PHP


As you all knows that MySQLi is improved PHP extension of MySQL which is introduced in PHP 5. MySQL is deprecated in PHP 5.5 will be removed in future. We have millions of applications using PHP MySQL and needs to be updated on MySQLi or PDO (PHP Data Objects is also a new extension you can use to use in your applications). So today i am going to give you a very simple integration guide of MySQLi how to connect to a database, how to run a query and insert records etc hope you like this article.


Thursday, 31 October 2013

How to Import CSV File Data Into Mysql Using PHP


How to Import CSV File Data Into Mysql If you are a developer then definitely you might have faced this. Many times you need to import data from a CSV (comma separated value) file and insert it into your MySQL database. Say for Example consider a case when you have many records in a CSV file and you need to import them into your MySQL database then you can’t insert each n every single record manually as it will take too much time.