View Code Snippets


04 May, 2011   

Need to people out if they have been inactive for too long? Do it with this piece of code. Introduction ----------------------- This takes 3 functions to complete the inactive session task. 1. We need to check if the person is actually logged in using our isLogged function 2. We need the function to check the time the page loaded, and when...

This function is used to reverse an integer array. For example, if the array is {1,2,3,4,5}, these functions will return an array like {5,4,3,2,1}. The user needs to pass in a pointer to the array and the size of the array, and the function will return a pointer to an array in the reverse order.

22 February, 2016   

C/C++ source code for euler approximation method

07 August, 2014   

All hints except /*+ rule */ cause the CBO to be used. Therefore, it is good practise to analyze the underlying tables if hints are used (or the query is fully hinted.

This basic snippet will create a random authentication code, or just a random string.

How to display the source code of any webpage. you can use below example code

04 October, 2012   

Code example for parsing XML in easy way using PHP

04 July, 2012   

Good programmer comments their code so that anyone can know what is happening in code. Its easy for others to edit the code.

Visual Basic code for inverting text with simple code. Very easy for all beginners. Easy to understand. Compatibility: VB 6 Author of the code: Ben - Ezrah Mansilla Declarations: Add two text box with default name One command with default name

17 November, 2011   

Example for some HTML <em> <strong> <dfn> <code> <samp> <kbd> <var> <cite> Tags

15 September, 2011   

Here are example of Different computer-output tags

09 May, 2011   

This is a general code to use when inserting an item from a MySQL database. This code isn't considered definitive and can be written in many varied ways. An extention of this code would be to make sure the entry you are adding to the database doesn't already exist (to save dupicate entries). Note: This code requires you to connect to the MySQL...

Delphi example code for Google Spreadsheet GEO code address

14 May, 2011   

This is a general code to use when deleting an item from a MySQL database. This code isn't considered definitive and can be written in many varied ways. A variation of the code would be not to delete the record (as you tend to always need to restore or retrieve it sooner or later) you can add a 'status' field. If status='d' then it is...

Here's how to invoke a click on a Windows Start button from code.

08 October, 2014   

JavaScript code to detect browser and OS.

02 August, 2014   

JavaScript code to detects browser and OS

CSS code to create resizable images With CSS

06 June, 2012   

This function highlight_string() outputs or returns a syntax highlighted version of the given PHP code using the colors defined in the built-in syntax highlighter for PHP.

01 October, 2013   

This php code for mail someone from your code