Blog

how to get next day date in php?

<?php $todayDate = date("Y-m-d");// current date echo "Today: ".$todayDate."<br>"; //Add one day to today $date = strtotime(date("Y-m-d", strtotime($todayDate)) . " +1 day"); echo "After ad

View More

PHP method chaining

<?php class chaining { private $str; function __construct() { $this->str = ""; } function addA() { $this->str .= "a"; return $this; } function addB() { $this->str .= "b"

View More

How to count no. of days between two dates in PHP

[code lang="php"] <?php function dateDiff($start, $end) { $start_ts = strtotime($start); $end_ts = strtotime($end); $diff = $end_ts - $start_ts; return round($diff / 86400);

View More

how to get first four characters from string in PHP

<?php echo $x="wama software"; echo "<br>"; echo substr($x, 0, 4); //returns "wama" echo "<br>"; echo "<br>"; echo "Some other examples too.."; echo substr ($x, 0, 3); // outputs wam echo "

View More

Import SQL file with command line

-make sure database should be already created and you should be knowing username and password -put your sql file in the same folder temporarily -compressed files will not work open command line

View More

how to get joomla user id

&lt;?php $user =&amp; JFactory::getUser(); $usr_id = $user-&gt;get('id'); echo $usr_id; // this is the log-in user ID :-) ?&gt;

View More

Disable Cut,Copy and Paste

Disable Cut,Copy and Paste Demo <script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.4.min.js">// <![CDATA[ // ]]></script> <script type="text/javascript">// <![

View More

concate field data using update query in php mysql

<strong>UPDATE tableName SET fieldName = CONCAT(fieldName, 'New Data To Add Here') WHERE ...</strong> <p style="text-align: left;"><em>example :</em></p>      <strong>UPDATE ws_contact SET webpage =

View More

strtotime() to date() format in php

&lt;?php $date = 1349733600; echo $time = date("Y-m-d",$date); &nbsp; //output :2012-10-09 ?&gt; &nbsp; &nbsp;

View More

how to call javascript function on a href click

Html: &lt;a href="javascript<strong></strong>:redirect(this)" id="wama_software" &gt; WAMA SOFTWARE &lt;/a&gt; Javascript : &lt;script language="javascript"&gt; function redirect(this) alert(this.

View More

how to disable right click of web page

&lt;script language="JavaScript"&gt; var message="hello Wama Software right click is Disabled!"; function clickIE_wamasoftware() { if (document.all) { alert(message); return false; } } function click

View More

how to convert 12 hour to 24 hours time

&lt;?php $time_ws="1:30 PM"; echo $time_24_hour_ws = date("H:i", strtotime($time_ws)); //13:30 echo $time_24_hour_ws = date("H:i:s", strtotime($time_ws)); //13:30:00 ?&gt; &nbsp; &nbsp;

View More

function to find and complete open html tags in php

&lt;?php function closeHTMLtags($html, $length) { $truncatedText = substr($html, $length); $pos = strpos($truncatedText, "&gt;"); if($pos !== false) { $html = substr($html, 0,$length + $pos + 1

View More

Sql join from the same table

here you need to use alias name.... <code><a href="http://192.168.1.111/phpmyadmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Fselect.html&amp;token=1f36f3ef1f79485032b484037

View More

How to remove special character for any string

$mobile = '(250) 9912-124-56.67'; $mobile = preg_replace('/[^a-zA-Z0-9]/', '', $mobile); echo $mobile;

View More

How to get date after 40 days in php

&lt;?php $currentdate= date("Y-m-d"); //Current date $add_days = 40; // no of days $date_afterforty = date('Y-m-d',strtotime($currentdate) + (24*3600*$add_days)); // date after 40 days of current

View More

Seprate date, time from datetime

$createdatetime='2013-07-22 08:07:40'; $datetime = new DateTime($createdatetime); $createdate = $datetime-&gt;format('Y-m-d'); $createtime = $datetime-&gt;format('H:i:s');

View More

Removing file extension via .htaccess

<strong>Problem:</strong> You have the following URLs for your website: www.wamasoftware.com/about-us.html www.wamasoftware.com/services.html www.wamasoftware.com/contact-us.html However, you would l

View More

IT logos

all important IT technology logos for designing http://www.yellosoft.us/logos#phonegap

View More

CodeIgniter Introduction

<h3>* What is CodeIgniter?</h3> &nbsp; CodeIgniter is a powerful PHP framework with a very small footprint, built for PHP coders who need a simple and elegant toolkit to create full-featured web a

View More

How to Install CodeIgniter on Local Xampp Server

<h3>* How to Install CodeIgniter on Local Xampp Server :-</h3> &nbsp; <h3>Step 1.</h3> &nbsp; <ul> <li>First Download CodeIgniter.</li> </ul> &nbsp; <h3>Step 2.</h3> &nbsp; <ul> <li>After

View More

Database Configuration

<h3>* Database Configuration :-</h3> &nbsp; <ul> <li>The config file is located at <strong><strong><strong><strong> <samp>application/config/database.php</samp></strong></strong></strong></strong

View More

Config Class

<h2>* Config Class :-</h2> <ul> <li>The Config class provides a means to retrieve configuration preferences.</li> <li>These preferences can come from the default config file (<strong><strong><str

View More

Creating Static pages at CodeIgniter

<h2><strong>*Creating First Application at CodeIgniter:-</strong></h2> &nbsp; <strong>1)</strong>  First, we make controller, create a file name "pages.php"   Create a file    at <strong><dfn>appl

View More

ADD-Update-Delete Operation In Codeigniter

<h2><strong>* Creating First Application at CodeIgniter:-</strong></h2> <strong>1)</strong>  First, we make controller, create a file name "pages.php"   Create a file    at <strong><dfn>application/c

View More

Controllers

<h3>* What is a Controller?</h3> &nbsp; <ul> <li>A Controller is simply a class file that is named in a way that can be associated with a URI.</li> </ul> &nbsp; <h4>Consider this URI:</h4> &nb

View More

Models

<h2>* What is a Model ?:-</h2> <ul> <li>Models are <strong>optionally</strong> available for those who want to use a more traditional MVC approach.</li> <li>Models are PHP classes that are design

View More

View

<h2>* What is a View ?:-</h2> <ul> <li>A <dfn>view</dfn> is simply a web page, or a page fragment, like a header, footer, sidebar, etc. In fact, views can flexibly be embedded within other views (w

View More

How to execute Query in Model

<h2>*How to execute Query in Model:</h2> <h2>        * Selecting Data:-</h2> <h5>1) $this-&gt;db-&gt;get();</h5> &nbsp; <h6>-<strong>Runs the selection query and returns the result. Can be used by

View More

Helper Functions

<h2>* <strong>What is Helper Functions</strong> ?</h2> <ul> <li>Helpers, as the name suggests, <strong>help</strong> you <strong>with tasks.</strong></li> <li>Each helper file is simply a <strong

View More

Form Validation

<h2>* <span style="text-decoration: underline;">Form Validation :-</span></h2> let's describe the ideal scenario: <ol> <li>A form is <strong>displayed.</strong></li> <li>You <strong>fill</strong

View More

JQUERY Through Validation

<h2>* <strong>How to put Validation Using Jquery ?</strong></h2> <ul> <li>showing how to integrate Codeigniter form validation library and jQuery Ajax.</li> <li>We are using Codeigniter Form Vali

View More

Cookies

<h2>* PHP Cookies :-</h2> <h2>What is a Cookie?</h2> A cookie is often used to identify a user. A cookie is a small file that the server embeds on the user's computer. Each time the same computer re

View More

Sessions

<h2>* PHP Sessions :-</h2> <ul> <li>A PHP session variable is used to store information about, or change settings for a user session. Session variables hold information about one single user, and a

View More

PHP Database

<h2>What is MySQL ?</h2> <ul> <li>MySQL is a<strong> database system</strong> used on the web</li> <li>MySQL is a database system that <strong>runs on a server</strong></li> <li>MySQL is ideal

View More

PHP Function

<h2>* PHP Function :-</h2> <ul> <li>A function is a <strong>block of statements</strong> that can be used<strong> repeatedly</strong> in a program.</li> <li>A function <strong>will not</strong> e

View More

Technical Questions In Php :-

<h2><strong>1) What is PHP?</strong></h2> <ul> <li>PHP stands for PHP : Hypertext Preprocessor.</li> <li>PHP is a server side scripting language, like ASP</li> <li>PHP scripts are executed on t

View More

Group By and Having Clause

<h2><strong>* Group By :-</strong></h2> <ul> <li><strong>Aggregate functions</strong> often need an added <strong>GROUP BY statement</strong>.</li> <li>The GROUP BY statement is <strong>used</str

View More

Types of Joins in MYSQL

<h2><strong>* What is join?</strong></h2> <ul> <li>An SQL <code>JOIN </code>clause is used to <strong>combine rows</strong> from <strong>two or more tables</strong>, based on a common field between

View More

JavaScript Objects

<h2>* JavaScript Objects :-</h2> <ul> <li>Almost everything in JavaScript can be an Object: Strings, Functions, Arrays, Dates....</li> <li>Objects are just data, with added properties and methods

View More

String Properties and Methods

<h2>String Properties and Methods</h2> <h3>Properties:</h3> <ul> <li>length</li> <li>prototype</li> <li>constructor</li> </ul> &nbsp; <h3>Methods:</h3> <ul> <li>charAt()</li> <li>charC

View More

String Function

<h2>* String Function :-</h2> <h2>1) String Length</h2> <ul> <li>The length of a string (a string object) is found in the built in property <strong>length</strong>:</li> </ul> <h3>Example :</h3>

View More

Maths Function

<h2>* Math Object :-</h2> <ul> <li>The Math object allows you to <strong>perform mathematical tasks.</strong></li> <li>The Math object includes several<strong> mathematical constants</strong> and

View More

DOM

<h2>* What is the DOM?</h2> <ul> <li>The DOM is a<strong> W3C (World Wide Web Consortium) standard.</strong></li> <li>The DOM defines a standard for<strong> accessing documents:</strong></li> <

View More

Break And Continue

<h2>* The Break Statement :-</h2> <ul> <li>You have already seen the break statement used in an earlier chapter of this tutorial. It was used to "jump out" of a switch() statement.</li> <li>The b

View More

Mouse Events

<h2>1) onclick</h2> <ul> <li><span style="line-height: 13px;">The event occurs when the user clicks on an element </span></li> </ul> <h2><strong>2)  ondblclick </strong></h2> <ul> <li><span s

View More

UNION Operator

<h2></h2> <ul> <li><span style="font-size: 13px;">The <strong>UNION operator</strong> is used to <strong>combine</strong> the result-set of<strong> two or more SELECT statements.</strong></span></l

View More

CodeIgniter Libraries

<h1></h1> <h2><strong>* <span style="text-decoration: underline;">CodeIgniter Libraries :-</span></strong></h2> &nbsp; <ul> <li><span style="font-size: 13px;">All of the <strong>available librari

View More

File Uploading Class

<h1></h1> <h2>* <span style="text-decoration: underline;">File Uploading Class :-</span></h2> <ul> <li><span style="font-size: 2em;"> </span><span style="font-size: 13px;">CodeIgniter's <strong>Fi

View More

foreach loop

<h2></h2> <h2><strong>foreach loop</strong></h2> <ul> <li><span style="font-size: 13px;">The </span><em style="font-size: 13px;">foreach</em><span style="font-size: 13px;"> construct provides an e

View More

What is SQL?

<h2>* <span style="text-decoration: underline;">What is SQL?</span></h2> <ul> <li>SQL stands for <strong>Structured Query Language</strong></li> <li>SQL lets you <strong>access and manipulate</st

View More

SELECT Statement

<h2>* <span style="text-decoration: underline;">The SQL SELECT Statement :-</span></h2> &nbsp; <ul> <li><span style="font-size: 13px;">The <strong>SELECT</strong> statement is used to <strong>sele

View More

SELECT DISTINCT Statement

<h2>*<span style="text-decoration: underline;"> The SQL SELECT DISTINCT Statement</span></h2> <ul> <li><span style="font-size: 13px;">In a table, a column may contain <strong>many duplicate values;

View More

WHERE Clause

<h2>* <span style="text-decoration: underline;">SQL WHERE Clause :-</span></h2> <ul> <li><span style="font-size: 13px;">The WHERE clause is used to extract only those records that fulfill a specifi

View More

AND & OR Operators

<h1></h1> <h2>*<span style="text-decoration: underline;"> SQL AND &amp; OR Operators :-</span></h2> &nbsp; <ul> <li><span style="font-size: 13px;">The AND &amp; OR operators are used to filter re

View More

Create a WordPress Post

<h2>* How to Create New WordPress Post :-</h2> <h2><strong>Step 1 : </strong></h2> <ul> <li> <h3><strong>creating posts. To begin, login to your site admin panel and go to <strong>Posts -&gt; Add

View More

Add Multimedia to WordPress Posts

<h2>* <span style="text-decoration: underline;">how to add photos, videos and music to your WordPress site :-</span></h2> &nbsp; <h2><strong>Step 1 :</strong></h2> <ul> <li>Adding photos, videos

View More

How to Install WordPress Themes

<h2></h2> <h2>* <span style="text-decoration: underline;">How to Install WordPress Themes :-</span></h2> &nbsp; <h2><strong>Step 1 :</strong></h2> <ul> <li>The first thing you need to do when yo

View More

How to Install WordPress Plugins

<h2>* <span style="text-decoration: underline;">How to Install WordPress Plugins :-</span></h2> <h2><strong>Step 1:</strong></h2> <ul> <li>Plugins are tools which provide <strong>additional functi

View More

How to update Wordpress from the Admin area?

<h2><strong>*<span style="text-decoration: underline;"> How to update Wordpress from the Admin area? :-</span></strong></h2> <h2><strong>Step 1</strong> :</h2> <ul> <li>In WordPress 2.7.x you can

View More

Joomla Introduction

<h2>* WHAT IS JOOMLA?</h2> <ul> <li><span style="font-size: 13px;">Joomla is an <strong>award-winning</strong> content management system (CMS), which <strong>enables</strong> you to build Web sites

View More

mail() Function

<h2>* PHP mail() Function :-</h2> <ul> <li> <h3><strong><span style="font-size: 13px;">The mail() function allows you to send emails directly from a script.</span></strong></h3> </li> </ul> <h2

View More

explode and implode function

<h2>* PHP  explode() Function :</h2> <ul> <li><span style="font-size: 13px;">The explode() function breaks a string into an array.</span></li> </ul> &nbsp; <h2><strong>Syntax :</strong></h2> <s

View More

how to get position from string in php

<h2>* <span style="text-decoration: underline;">PHP strrpos() Function :-</span></h2> <ul> <li><span style="font-size: 13px;">The strrpos() function <strong>finds the position</strong> of the <stro

View More

how to get length from string in php

<h2>* PHP strlen() Function :-</h2> <ul> <li><span style="font-size: 13px;">The <strong>strlen() function</strong> returns the <strong>length of a string.</strong></span></li> </ul> <h2>Syntax :<

View More

how to compare string in php

<h2>* PHP strncmp() Function :-</h2> <ul> <li><span style="font-size: 13px;">The strncmp() function <strong>compares two strings.</strong></span></li> <li><b style="font-size: 13px;">Note:</b><sp

View More

how to Reverse a string in php

<h2>* PHP strrev() Function :-</h2> <ul> <li><span style="font-size: 13px;">The strrev() function reverses a string.</span></li> </ul> <h2>Syntax :</h2> strrev(<em>string</em>) <h2><strong>Exam

View More

how to Convert the first character from string in php

<h2>* PHP ucfirst() Function :-</h2> <ul> <li><strong><span style="font-size: 13px;">The ucfirst() function converts the first character of a string to uppercase.</span></strong></li> </ul> &nbsp

View More

Date Function in Javascript

<h2>* Date Function in Javascript :-</h2> <h2><strong>1) getFullYear() </strong></h2> <ul> <li><strong><span style="font-size: 13px;">Use getFullYear() to get the year.</span></strong></li> </ul>

View More

SQL Views

<h2>* SQL CREATE VIEW Statement :</h2> <ul> <li>In SQL, a view is a <strong>virtual table</strong> based on the <strong>result-set of an SQL statement.</strong></li> <li>A view contains <strong>r

View More

PRIMARY KEY Constraint

<h2>* <strong>SQL PRIMARY KEY Constraint :-</strong></h2> <ul> <li>The <strong>PRIMARY KEY constraint</strong> <strong>uniquely identifies</strong> each record in a database table.</li> <li>Prima

View More

FOREIGN KEY Constraint

<h2>* SQL FOREIGN KEY Constraint :-</h2> <ul> <li>A FOREIGN KEY in one table <strong>points to a PRIMARY KEY in another table.</strong></li> </ul> <h3><b>MySQL:</b></h3> CREATE TABLE Orders (

View More

how to search specific character or word in a column ?

<h2>* <span style="text-decoration: underline;">SQL LIKE Operator :-</span></h2> <ul> <li>The<strong> LIKE operator</strong> is used in a WHERE clause to <strong>search for a specified pattern</str

View More

how to find average of a numeric column

<h2>* SQL AVG() Function :-</h2> <ul> <li>The AVG()  function returns the<strong> average value</strong> of a numeric column.</li> </ul> &nbsp; <h2> Syntax :</h2> SELECT AVG(column_name) FROM t

View More

how to find max and min value of a numeric column

<h2>* SQL MAX() Function :-</h2> <ul> <li>The MAX() function returns the largest value of the selected column.</li> </ul> <h2>Syntax :</h2> SELECT MAX(column_name) FROM table_name; <h2>Example

View More

how to find date and time ?

<h2>* SQL NOW() Function :-</h2> <ul> <li>The NOW() function returns the current system date and time.</li> </ul> <h2>Syntax :</h2> SELECT NOW() FROM table_name; <h2>Example :</h2> SELECT Prod

View More

What are the methods available in form submitting?

<h2>* What are the method available in form submitting? :-</h2> &nbsp; <ul> <li><strong style="font-size: 1.17em;">GET and POST.</strong></li> </ul> &nbsp; <ul> <li>GET method is mostly used

View More

How can we submit form without a submit button?

<h2></h2> <ul> <li> <h3>We can use a simple JavaScript code linked to an event trigger of any form field. In the JavaScript code, we can call the<span style="text-decoration: underline;"> <strong>

View More

How to Install Joomla?

<h2><strong>* Follow these steps to install Joomla manually:</strong></h2> <h2>STEP 1 : Download the Needed Joomla 3 Installation Package :</h2> <ul> <li>To start a Joomla installation on a web se

View More

How to Customize the WordPress Dashboard

<h2><strong>Step 1 :</strong></h2> <ul> <li>The first thing you see when you access your WordPress admin panel is the Dashboard.</li> <li>It is a collection of gadgets that provide you informatio

View More

how to add-delete-modify columns in an existing table.

<h2>* SQL ALTER TABLE Syntax :-</h2> &nbsp; <h3>1) To add a column in a table, use the following syntax:</h3> ALTER TABLE table_name ADD column_name datatype &nbsp; <h3><strong>2) To delete a

View More

how to find length of the value in a text field.

<h2>* <span style="text-decoration: underline;">The LEN() Function :-</span></h2> <ul> <li><span style="font-size: 13px;">The LEN() function returns the length of the value in a text field.</span><

View More

SQL NOT NULL Constraint

<ul> <li><span style="font-size: 13px;">The <strong>NOT NULL</strong> constraint enforces a <strong>column to NOT accept NULL values.</strong></span></li> <li><span style="font-size: 13px;">The <s

View More

SQL UNIQUE Constraint

<ul> <li><span style="font-size: 13px;">The <strong>UNIQUE</strong> constraint uniquely identifies each <strong>record in a database table.</strong></span></li> <li><span style="font-size: 13px;">

View More

SQL CHECK Constraint

<ul> <li><span style="font-size: 13px;">The CHECK constraint is used to limit the value range that can be placed in a column.</span></li> <li><span style="font-size: 13px;">If you define a CHECK c

View More

CSS Introduction

<h2>What is CSS?</h2> <ul> <li><b>CSS</b> stands for <b>C</b>ascading <b>S</b>tyle <b>S</b>heets</li> <li>Styles define <b>how to display</b> HTML elements</li> <li>Styles were added to HTML 4.

View More

CSS Syntax and Example

<h3><strong>Syntax :</strong></h3> <ul> <li><strong><span style="font-size: 13px;">p {color:red;text-align:center;}</span></strong></li> </ul> &nbsp; <h3><strong>Example :</strong></h3> &lt;htm

View More

CSS Selectors

<h2>1) The element Selector :-</h2> <ul> <li><span style="font-size: 13px;">The element selector selects elements based on the element name.</span></li> <li><span style="font-size: 13px;">You can

View More

CSS Text

<h2>1) Text Color :</h2> The color property is <strong>used</strong> to <strong>set the color of the text.</strong> With CSS, a color is <strong>most often specified by:</strong> <ul> <li>a HEX

View More

CSS Font

<h2>1) CSS Font Families</h2> In CSS, there are two types of font family names: <ul> <li><b>generic family</b> - a group of font families with a similar look (like "Serif" or "Monospace")</li> <

View More

CSS Links

<h2>1) Styling Links</h2> Links can be styled with any CSS property (e.g. color, font-family, background, etc.). In addition, links can be styled differently depending on what <strong>state</stron

View More

CSS Lists

The CSS list properties allow you to: <ul> <li>Set different list item markers for ordered lists</li> <li>Set different list item markers for unordered lists</li> <li>Set an image as the list i

View More

CSS Padding

<ul> <li><span style="font-size: 13px;">The padding clears an area around the content (inside the border) of an element. The padding is affected by the background color of the element.</span></li>

View More

Css Margin

<h2>* Margin :-</h2> <ul> <li><span style="font-size: 13px;">The margin <strong>clears an area around</strong> an element (outside the border). The margin does not <strong>have a background color</

View More

CSS Border

<h2>* CSS Border Properties :-</h2> <h2></h2> <h2>1) Border Style :-</h2> <ul> <li><span style="font-size: 13px;">The border-style property specifies what <strong>kind of border to display</stron

View More

The typeof() Function

<h2> * typeof() Function :-</h2> <ul> <li><span style="font-size: 13px;">You can use the global JavaScript function typeof() to <strong>find the type of a variable.</strong></span></li> </ul> &nb

View More

What is a CMS (Content Management System)?

<h2>* What is a CMS (Content Management System) ?</h2> <ul> <li><span style="font-size: 13px;">A Content Management System is a <strong>series of programming pages</strong> connected to a </span><s

View More

Plugins

<h2><strong>* Plugins :-</strong></h2> <ul> <li><span style="font-size: 13px;">Plugins are<strong> features that</strong> can be added to Joomla, which will appear within the </span><strong>article

View More

Modules

<ul> <li><span style="font-size: 13px;">Modules can be recognized as being those side boxes on dynamic websites.</span></li> </ul> &nbsp; <ul> <li><span style="font-size: 13px;">The difference

View More

Components & Templates

<h2>* Components</h2> <ul> <li><span style="font-size: 13px;">Components work as <strong>added features</strong> to your Joomla site.</span></li> </ul> <ul> <li><span style="font-size: 13px;">T

View More

Why use C?

<h2>* Why use C ?</h2> <ul> <li><span style="font-size: 13px;">C has been used successfully for every type of programming problem imaginable from operating systems to spreadsheets to expert systems

View More

C - Program Structure

A C program basically consists of the following parts: <ul> <li>Preprocessor Commands</li> <li>Functions</li> <li>Variables</li> <li>Statements &amp; Expressions</li> <li>Comments</li> </u

View More

C - Basic Syntax

<h2>Tokens in C</h2> <ul> <li><span style="font-size: 13px;">A C program consists of various tokens and a token is either a keyword, an identifier, a constant, a string literal, or a symbol. For ex

View More

Identifiers & keywords

<ul> <li><span style="font-size: 13px;">A C identifier is a name used to identify a variable, function, or any other user-defined item. An identifier starts with a letter A to Z or a to z or an unde

View More

Whitespace in C

<ul> <li><span style="font-size: 13px;">A line containing only whitespace, possibly with a comment, is known as a blank line, and a C compiler totally ignores it.</span></li> </ul> &nbsp; <ul>

View More

C - Data Types

<table> <tbody> <tr> <th>S.N.</th> <th></th> </tr> <tr> <td>1</td> <td><b>Basic Types:</b> They are arithmetic types and consists of the two types: (a) integer types and (b) floating-point ty

View More

C - Constants and Literals

<ul> <li><span style="font-size: 13px;">The constants refer to fixed values that the program may not alter during its execution. These fixed values are also called </span><b style="font-size: 13px;"

View More

C - Operators

<ul> <li>Arithmetic Operators</li> <li>Relational Operators</li> <li>Logical Operators</li> <li>Bitwise Operators</li> <li>Assignment Operators</li> <li>Misc Operators</li> </ul> &nbsp;

View More

C - Decision Making

<ul> <li><span style="font-size: 13px;">Decision making structures require that the programmer specify one or more conditions to be evaluated or tested by the program, along with a statement or stat

View More

conditional operator

<h2>* The ? : Operator :-</h2> <ul> <li><span style="font-size: 13px;">We have covered </span><b style="font-size: 13px;">conditional operator ? :</b><span style="font-size: 13px;"> in previous cha

View More

if else statement

<ul> <li><span style="font-size: 13px;">An </span><b style="font-size: 13px;">if</b><span style="font-size: 13px;"> statement can be followed by an optional </span><b style="font-size: 13px;">else</

View More

The if...else if...else Statement

<ul> <li><span style="font-size: 13px;">An </span><b style="font-size: 13px;">if</b><span style="font-size: 13px;"> statement can be followed by an optional </span><b style="font-size: 13px;">else i

View More

switch statement

<ul><li><span style="font-size: 13px;">A </span><b style="font-size: 13px;">switch</b><span style="font-size: 13px;"> statement allows a variable to be tested for equality against a list of values. Ea

View More

C - Loops

<ul><li>There may be a situation, when you need to execute a block of code several number of times. In general, statements are executed sequentially: The first statement in a function is executed firs

View More

while loop in C

<ul> <li>A <b>while</b> loop statement in C programming language repeatedly executes a target statement as long as a given condition is true.</li> </ul> <h2>Syntax:</h2> <ul> <li>The syntax of

View More

for loop in c

<ul> <li>The initialization statement is executed only once at the beginning of the for loop. Then the test expression is checked by the program. If the test expression is false, for loop is termina

View More

do...while loop in C

<ul> <li>Unlike <b>for</b> and <b>while</b> loops, which test the loop condition at the top of the loop, the <b>do...while</b> loop in C programming language checks its condition at the bottom of th

View More

break statement in C

<p>The <b>break</b> statement in C programming language has the following two usages:</p> <ol> <li>When the <b>break</b> statement is encountered inside a loop, the loop is immediately terminated an

View More

continue statement in C

<ul> <li>The <b>continue</b> statement in C programming language works somewhat like the <b>break</b> statement. Instead of forcing termination, however, continue forces the next iteration of the lo

View More

goto statement in C

<ul> <li>A <b>goto</b> statement in C programming language provides an unconditional jump from the goto to a labeled statement in the same function.</li> </ul> <ul> <li><b>NOTE:</b> Use of <b>go

View More

C - Arrays

<ul> <li>C programming language provides a data structure called <b>the array</b>, which can store a fixed-size sequential collection of elements of the same type. An array is used to store a collec

View More

Two-Dimensional Arrays:

<ul><li>The simplest form of the multidimensional array is the two-dimensional array. A two-dimensional array is, in essence, a list of one-dimensional arrays. To declare a two-dimensional integer arr

View More

C - Functions

<ul> <li>A function is a group of statements that together perform a task. Every C program has at least one function, which is <b>main()</b>, and all the most trivial programs can define additional

View More

Passing Arrays as Function Arguments in C

<ul> <li>If you want to pass a single-dimension array as an argument in a function, you would have to declare function formal parameter in one of following three ways and all three declaration metho

View More

Pointer to an Array in C

<ul> <li>It is most likely that you would not understand this chapter until you are through the chapter related to Pointers in C.</li> </ul> &nbsp; <ul> <li>So assuming you have bit understandi

View More

Pointers in C language

<h2>* What are Pointers?</h2><p>Different from other normal variables which can store values, pointers are special variables that can hold the address of a variable. Since they store memory address of

View More

What is C language ?

<ul> <li><strong>C language</strong> is a general purpose and structured pragramming langauge developed by 'Dennis Ritchie' at AT &amp;T's Bell Laboratories in the 1972s in USA.</li> </ul> <ul>

View More

Structures in C

<ul> <li>Structure is a special type of C data type. Structures contains a number of data types grouped together. Structures in C is one of the excellent functionality provided in C. Structures make

View More

Unions in C

<ul> <li>A <b>union</b> is a special data type available in C that enables you to store different data types in the same memory location. You can define a union with many members, but only one membe

View More

typedef in C

<ul> <li><span style="font-size: 13px;">The C programming language provides a keyword called </span><b style="font-size: 13px;">typedef</b><span style="font-size: 13px;">, which you can use to give

View More

getchar() & putchar() functions

<ul> <li><span style="font-size: 13px;">The </span><b style="font-size: 13px;">int getchar(void)</b><span style="font-size: 13px;"> function reads the next available character from the screen and re

View More

The gets() & puts() functions

<ul><li><span style="font-size: 13px;">The </span><b style="font-size: 13px;">char *gets(char *s)</b><span style="font-size: 13px;"> function reads a line from </span><b style="font-size: 13px;">stdin

View More

scanf() and printf() functions

<ul> <li><span style="font-size: 13px;">The </span><b style="font-size: 13px;">int scanf(const char *format, ...)</b><span style="font-size: 13px;"> function reads input from the standard input stre

View More

What is yii framework ?

<ul> <li>Yii is a <a href="http://www.yiiframework.com/performance/">high-performance</a> PHP framework best for developing Web 2.0 applications.</li> <li><span style="font-size: 0.83em;">Yii help

View More

How to Install Yii Framework in XAMPP on Windows

<h3>Step 1:   Install XAMPP</h3> &nbsp; <ul> <li>XAMPP is a free and open source cross-platform web server solution stack package, consisting mainly of the Apache HTTP Server, MySQL database, and

View More

How to Creating application in yii framework ?

<h2><strong>Step 1:</strong></h2> <ul> <li>Open the <strong>Command Prompt</strong>, navigate to %yii-framework-path%\framework (in our case the <strong>full path is C:\xampp\htdocs\yiiframework\fr

View More

Controller

<ol> <li><a href="http://www.yiiframework.com/doc/guide/1.1/en/basics.controller#route">Route</a></li> <li><a href="http://www.yiiframework.com/doc/guide/1.1/en/basics.controller#controller-instan

View More

Creating Model

<ol> <li><a href="http://www.yiiframework.com/doc/guide/1.1/en/form.model#defining-model-class">Defining Model Class</a></li> <li><a href="http://www.yiiframework.com/doc/guide/1.1/en/form.model#d

View More

View

<ol> <li><a href="http://www.yiiframework.com/doc/guide/1.1/en/basics.view#layout">Layout</a></li> <li><a href="http://www.yiiframework.com/doc/guide/1.1/en/basics.view#widget">Widget</a></li> <

View More

Implementing CRUD Operations ¶

<ul> <li>Now comes the fun part. We would like to implement CRUD (create, read, update and delete) operations for the <code>tbl_user</code> table we just created. This is also commonly needed in pra

View More

C++ Overview

&nbsp; <ul> <li>C++ is a statically typed, compiled, general-purpose, case-sensitive, free-form programming language that supports procedural, object-oriented, and generic programming.</li> </ul>

View More

C++ Basic Syntax

When we consider a C++ program, it can be defined as a collection of objects that communicate via invoking each other's methods. Let us now briefly look into what do class, object, methods and instant

View More

C++ Identifiers:

<ul> <li>A C++ identifier is a name used to identify a variable, function, class, module, or any other user-defined item. An identifier starts with a letter A to Z or a to z or an underscore (_) fol

View More

C++ Keywords:

The following list shows the reserved words in C++. These reserved words may not be used as constant or variable or any other identifier names. &nbsp; &nbsp; <table> <tbody> <tr> <td>asm</td> <td>el

View More

Comments in C++

<ul> <li>Program comments are explanatory statements that you can include in the C++ code that you write and helps anyone reading it's source code. All programming languages allow for some form of c

View More

C++ Data Types

<ul> <li>While doing programming in any programming language, you need to use various variables to store various information. Variables are nothing but reserved memory locations to store values. Thi

View More

C++ Functions

<ul> <li>A function is a group of statements that together perform a task. Every C++ program has at least one function, which is <b>main()</b>, and all the most trivial programs can define additiona

View More

Declaring Arrays:

<ul> <li>To declare an array in C++, the programmer specifies the type of the elements and the number of elements required by an array as follows:</li> </ul> &nbsp; <ul> <li><span style="font-f

View More

C++ Basic Input/Output

<ul> <li>The C++ standard libraries provide an extensive set of input/output capabilities which we will see in subsequent chapters. This chapter will discuss very basic and most common I/O operation

View More

C++ Classes and Objects

<h2>C++ Class Definitions:</h2> &nbsp; When you define a class, you define a blueprint for a data type. This doesn't actually define any data, but it does define what the class name means, that is

View More

C++ Inheritance

<ul> <li>One of the most important concepts in object-oriented programming is that of inheritance. Inheritance allows us to define a class in terms of another class, which makes it easier to create

View More

C++ Overloading (Function)

<ul> <li>C++ allows you to specify more than one definition for a <b>function</b> name or an <b>operator</b> in the same scope, which is called <b>function overloading</b> and <b>operator overloadin

View More

Operators overloading

<h2>Operators overloading in C++:</h2> <h2></h2> <ul> <li>You can have multiple definitions for the same function name in the same scope. The definition of the function must differ from each other by

View More

Polymorphism in C++

<ul> <li>The word <b>polymorphism</b> means having many forms. Typically, polymorphism occurs when there is a hierarchy of classes and they are related by inheritance.</li> </ul> &nbsp; <ul> <l

View More

Virtual Function:

<ul> <li>A <b>virtual</b> function is a function in a base class that is declared using the keyword <b>virtual</b>. Defining in a base class a virtual function, with another version in a derived cla

View More

Data Abstraction in C++

<ul><li>Data abstraction is a programming (and design) technique that relies on the separation of interface and implementation.</li></ul><p>&nbsp;</p><ul><li>Data abstraction is a programming (and des

View More

Data Encapsulation in C++

All C++ programs are composed of the following two fundamental elements: &nbsp; <ul> <li><b>Program statements (code):</b> This is the part of a program that performs actions and they are called

View More

Interfaces in C++ (Abstract Classes)

<ul> <li>An interface describes the behavior or capabilities of a C++ class without committing to a particular implementation of that class.</li> </ul> &nbsp; <ul> <li>The C++ interfaces are im

View More

C++ Exception Handling

<ul> <li>An exception is a problem that arises during the execution of a program. A C++ exception is a response to an exceptional circumstance that arises while a program is running, such as an atte

View More

C++ Multithreading

<ul> <li>Multithreading is a specialized form of multitasking and a multitasking is the feature that allows your computer to run two or more programs concurrently. In general, there are two types of

View More

Namespaces in C++

<ul> <li>Consider a situation, when we have two persons with the same name, Zara, in the same class. Whenever we need to differentiate them definitely we would have to use some additional informatio

View More

C++ Files and Streams

<ul> <li>So far, we have been using the <b>iostream</b> standard library, which provides <b>cin</b> and <b>cout</b> methods for reading from standard input and writing to standard output respectivel

View More


    Latest posts

    14.05.14
    C++ Multithreading

    <ul> <li>Multithreading is a specialized form of

    14.05.14
    C++ Exception Handling

    <ul> <li>An exception is a problem that arises d

    14.05.14
    Interfaces in C++ (Abstract Classes)

    <ul> <li>An interface describes the behavior or

    Get Free Quote