Articles tagged with: session
Magento »
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 »
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 »
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::
