KK Here i attached a register script this just edit config.uzn to your database login information then put the page on a HTTP server "Wamp / Xampp / Appserver" anything that supports php thought this script has some stuff you gotta know about them, The script doesn't allow more than 3 accounts per IP and you gotta redesign your account table to have a column named IP at the end of the columns.
Also you need to add a new table named account_detail
Code:
CREATE TABLE `account_detail` (
`id` int(4) unsigned zerofill NOT NULL auto_increment,
`loginname` text NOT NULL,
`realname` text NOT NULL,
`secretquestion` text NOT NULL,
`answer` text NOT NULL,
`identification` text NOT NULL,
`email` text NOT NULL,
`password` text NOT NULL,
PRIMARY KEY (`id`)
) TYPE=MyISAM;