Home » Archive

Articles tagged with: session

Magento »

[23 Nov 2009 | One Comment | 817 views]

Set a custom session with Variable Name ‘testing_magento’. The session value here is ‘hello’.
Mage::getSingleton(‘core/session’)->setTestingMagento(‘hello’);
Get session testing_magento
$test = Mage::getSingleton(‘core/session’)->getTestingMagento();

MySQL, PHP »

[5 Mar 2008 | One Comment | 624 views]

Before I had posted an article to add, edit, delete, and display contents. I had also included sessions there. There was the facility to login and register users too.
But i got feedback that it was a bit complex for novice users of PHP (users who have just started PHPing). It was a kind of full-fledge system with PHP, MySQL and session.

MySQL, PHP »

[15 May 2007 | No Comment | 155 views]

At first create database named ‘test’ in mysql. Use ‘test’. Then create table ‘project’.
MySQL queries for the above tasks ::

create database test;
use test;
create table project (id int(9) not null auto_increment, username varchar(50), password varchar(50), time datetime, primary key(id));

Now the php code::