codeigniter-3

Get desired value of selectbox through jquery

蹲街弑〆低调 提交于 2019-12-13 09:05:49
问题 Here i have three dropdowns with differents values and the code looks like as follows. To get the value of the corresponding dropdown using jquery i had this but it always gets same value please have a look $(".one").hide(); $(".two").hide(); $(".three").show(); var name_type=$("#abc_type_1").attr('name','type'); $("#abc_type_2").removeAttr('name'); $("#abc_type_3").removeAttr('name'); $("input[name=select_type]:radio").change(function () { if($(this).val()=='1') { $(".one").show(); $(".two")

Page number for dynamically generated pages in mPDF

感情迁移 提交于 2019-12-13 08:56:10
问题 I am using mPDF with Codeigniter for creating PDF files. I have a problem when adding page number. I have some result sets that are generated via database queries and I pass them to my html file to display that data. According to the number of results it creates and converts to pdf format with number of pages. Problem is I cannot add page numbers when it generates more than one page. I am using the basic examples for this operation. Please help me on this! My controller code $result_1 = $this

how to overcome xss_clean error in codeigniter?

扶醉桌前 提交于 2019-12-13 08:42:49
问题 Unable to access an error message corresponding to your field name Username.(xss_clean) Unable to access an error message corresponding to your field name Email.(xss_clean) Unable to access an error message corresponding to your field name Password.(xss_clean) How to overcome errors corresponding to fields? "Unable to access an error message corresponding to your field" what is this exactly? 回答1: Unable to access an error message corresponding to your field name Password.(xss_clean) "Unable

Sidebar sliding issue when a ajax function calls in codeigniter

一个人想着一个人 提交于 2019-12-13 07:27:04
问题 I have an add function in codeigniter controller thats work using ajax. when click on Add Rfq in sidebar .and again trying to click on any other link on the sidebar it automatically closing.why affecting this function in sidebar working? [![sidebar view] Controller Function public function addrfqoffline() { $content = ""; $this->load->helper(array('form', 'url')); $data['customers'] = $this->userdata_model->usersname(); $data['merchants'] = $this->merchant_model->merchantname(); // $data[

Codeigniter 3 get a specific session data by id

こ雲淡風輕ζ 提交于 2019-12-13 07:15:22
问题 Codeigniter 3 session table looks like the following CREATE TABLE IF NOT EXISTS `ci_sessions` ( `id` varchar(40) NOT NULL, `ip_address` varchar(45) NOT NULL, `timestamp` int(10) unsigned DEFAULT 0 NOT NULL, `data` blob NOT NULL, KEY `ci_sessions_timestamp` (`timestamp`) ); I can access my current session by $this->session But If I'd like to access a specific session how would I do that. I can get the session like $this->db->where('id', 'db256c0b82f8b6ba1e857d807ea613792817157a'); $res = $this

Troubleshooting codeigniter “Unable to locate the model you have specified…” error

帅比萌擦擦* 提交于 2019-12-13 04:54:15
问题 I have been developing a web application using CodeIgniter on my Mac with no issues whatsoever. I am using the Ion Auth library for user authentication. I have no ported the site the production server and I am getting the following error: An Error Was Encountered Unable to locate the model you have specified: Ion_auth_model All of the posts on here seem to be file placement or the case of the filename or class name. I have quadruple checked the ion auth model code.. /application/models/ion

Multiple foreach getting the first array empty

瘦欲@ 提交于 2019-12-13 04:40:43
问题 I am using CodeIgniter. What I am doing is, I am getting all the records from the table and I am passing the id to the model to get all the related records. So in the view page, I am displaying all users Name and Email using the first foreach and in the second foreach I am displaying all the records related to the id. So my output is, Name: alex Email: alex@gmail.com Active Name:poiuy Active Duration: 3m Active Name:wer Active Duration: 6m Active Name:pojfd Active Duration: 12m Controller

error in creating gallery using codeigniter

北战南征 提交于 2019-12-13 04:03:40
问题 i have pasted some two screen shoots of my database and how actually i want my web page to look. im trying to get this done but not getting how to solve the issue i have stored all the images in folder and also the image path in the database, now i want to fetch the image in such a way that when i click the all works it should display all the images but when i click creative or photography or web development like this then it should show only those images which are related to their classes

Mail sent with PHP mail are not shown in my mails Sent folder

北慕城南 提交于 2019-12-13 03:56:47
问题 I'm sending email from my webmail accounts to any email address. Mails are sending successfully, but how can I have this mails in my webmail account sent folder . I use codeigniter email sent functionality. 回答1: You should include your code in your question. This isn't PHPMailer's job, but it's related. Take a look at the end of the gmail example provided with PHPMailer. It includes a section that uploads a sent message to your IMAP folder. The basic idea is that after you've received a

unable to store the multiselect data to database

陌路散爱 提交于 2019-12-13 03:56:35
问题 im trying to store the values in database, all the values are getting dtored in the database but the issue is with dropdown. when i try to upload the multiselect dropdown only the last selected value is getting stored, where as i want to store all the selected values in the database, can some one guide me how can i do that //----controller----- public function portfolio1() { $this->form_validation->set_rules('first_content', 'First content', 'required'); $this->form_validation->set_rules(