IT Tips, Tricks and Techniques

BrowserStack – Browser Emulator

(October 2nd, 2015)

After installing add on BrowserStack allows to choose from all popular browsers with their various versions to display the specified websites.

It offers testing on

– All popular browsers like Firefox, Chrome, IE, Opera, Safari etc.
– All possible versions of each browser.
– A host of Operating Systems like Windows XP, Windows 7, Windows 8, Windows 10, iOS, Android, OS X etc.
– plenty of resolutions upto 2048 * 1536

Sql Injection.

(October 1st, 2015)

Checking Vulnerability: To check if the site is vulnerable to SQLi the most common way is to just add an apostrophe( ‘ ) after one of the parameters in the URL.


Now if the site is vulnerable it will show error like:

You have an error in your SQL Syntax

Warning: mysql_num_rows()
Warning: mysql_fetch_assoc()
Warning: mysql_result()
Warning: mysql_fetch_array()
Warning: mysql_numrows()
Warning: mysql_preg_match()

Why JQuery?

(August 9th, 2015)

As a matter of fact, there’s no healthy competitor of JQuery out there in the market. There ‘are’ lots of javascript libraries available but each of those have their sole but limited purpose and have their niche and value. So quickly speaking here are those prominent attributes which make JQuery acceptable by a large number, in fact the dominating majority of the developers.
Read the rest of this entry »

Selector Magic

(June 22nd, 2015)

Selecting Elements by Attribute

$( “input[name=’first_name’]” );

Selecting Elements by Compound CSS Selector

$( “#contents ul.people li” );

Read the rest of this entry »

JQuery Titbits

(May 20th, 2015)

To show/hide a div:

$("#thisdv").show('explode'); 	// where <div id="TempAddress">


To remove an element:


To add html as a first element in a container (#content):
	$("#content").prepend('<div id="firstdv" >');

To add html element at the end in a container (#bannerimg)
	$("#content").append('<img src="...">');

How to Prevent sql injection:

(May 20th, 2015)

Use mysql_real_escape_string() function for every posted (input) thing so that any (possible) injected sql will only become a string constant and will not be able to execute.
Read the rest of this entry »

Export & Download to MS Excel Format.

(May 20th, 2015)

This simple php code fetches required records from the database and builds a CSV file with proper http headers so that the file is downloaded to the user’s machine.
Read the rest of this entry »