*SQL CREATE TABLE ` user ` ( ` user_id ` int ( 11 ) NOT NULL , ` user_name ` varchar ( 50 ) NOT NULL , ` user_email ` varchar ( 50 ) NOT NULL , ` user_password ` varchar ( 50 ) NOT NULL , ` user_age ` int ( 11 ) NOT NULL , ` user_mobile ` int ( 11 ) NOT NULL ) ENGINE = InnoDB DEFAULT CHARSET = latin1 ;
Load more »Controller file function import() { $filename = $_FILES["file"]["tmp_name"]; if ($_FILES['file']['size'] > 0) { $file = fopen($filename, "r"); $is_header_removed = FALSE; while (($importdata = fgetcsv($file, 1000…
Load more »public function register_user() { if ($this->input->post()) { $this->form_validation->set_rules('first_name', 'First Name', 'required|is_unique[user.first_name]'); $this->form_validation->set_rules('last_name', 'Last Name', 'r…
Load more »
Social Plugin