31 Oct 2013

Magento: How To Select, Insert, Update, And Delete Data?

Suppose, I have a database table named ‘test‘ with the following fields:-
id : int, auto increment, primary key
title : varchar
content : text
status : 1
Suppose, I have a module named ‘mytest‘. Here follows the code to select, insert, update, and delete data from the ‘test‘ table.

30 Oct 2013

Here Are Code To Get, Set, And Unset Session In Magento

Magento allows the functionality to set the the value into session and get it where you want and unset too.There are three different modules magento uses for handling the session variable.Most common is the core module for handling the session variable that is'core/session' .For using the session variable magento uses most favourable methods 'setter' and getter like to set session set(your variable name) and to retrieving the session get.So lets starts for more details how to use variable for set,get and unset session variables.

29 Jul 2013

Php Variables

General Syntax of a PHP Variable is :
A variable starts with the $ sign, followed by the name of the variable
A variable name must begin with a letter or the underscore character
A variable name can only contain alpha-numeric characters and underscores (A-z, 0-9, and _ )
A variable name should not contain spaces

4 Jun 2013

How To Make My First Php Program And Run It.

For installation of PHP ..you can download wamp server from http://www.wampserver.com/en/  or http://www.php.net/manual/en/install.php

Let’s see how to make and run PHP code for the first time in your computer.