Hi newbee to php mysql
appreciate if anyone can help in change password in sha1
Current mysql table
`users` (
`id` int(255) unsigned NOT NULL AUTO_INCREMENT,
`username` varchar(100) NOT NULL,
`firstname` varchar(50) DEFAULT NULL,
`lastname` varchar(50) DEFAULT NULL,
`password` varchar(40) NOT NULL,
`active` int(1) NOT NULL DEFAULT '0',
`ip` text NOT NULL,
`usergroup` text NOT NULL,
`datasource_id` int(3) unsigned DEFAULT '0',
`last_login` int(14) DEFAULT NULL,
`day_limit` int(3) unsigned DEFAULT NULL,
`language` varchar(5) NOT NULL DEFAULT 'en',
`email` varchar(100) DEFAULT NULL,
`pwd_updated` int(14) unsigned DEFAULT NULL,
`created` int(14) unsigned NOT NULL DEFAULT '0',
`owner_id` int(255) NOT NULL DEFAULT '0',
`modified` int(14) unsigned DEFAULT NULL,
`updated` int(14) unsigned DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `login` (`username`),
KEY `active` (`active`),
KEY `password` (`password`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;