In this tutorial , we learn how to create user Profile Form in Codeigniter with Image upload , Validation and insert user data in MySQL database. We will then retrieve the information from the database and display it on the user profile details page. Follow following steps: 1. Database Database: `forms` -- -------------------------------------------------------- CREATE TABLE `profile` ( `id` int(11) NOT NULL, `name` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `mobnum` varchar(255) NOT NULL, `gender` varchar(255) NOT NULL, `educ` varchar(255) NOT NULL, `hobbies` varchar(500) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- - INSERT INTO `profile` (`id`, `name`, `email`, `mobnum`, `gender`, `educ`, `hobbies`) VALUES (1, 'John', 'john@gmail.com', '1111111111', 'Male', 'MBA/MCA', 'Photography, Mountain climbing'), (2, 'Mary', 'mary@gmail.com', '11111122
Comments
Post a Comment