--
-- Table structure for table `login`
--
CREATE TABLE IF NOT EXISTS `login` (
`MemId` int(5) NOT NULL AUTO_INCREMENT,
`UserName` varchar(25) NOT NULL,
`Type` varchar(20) NOT NULL,
'Time' time NOT NULL,
'Date' date NOT NULL,
PRIMARY KEY (`MemId`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=52 ;
This is my table structure.
Whenever user sign in I check his/her username from members table and on login success I redirect users to private pages on basis of type. Now how I insert record when user sign in.