Posts

Showing posts with the label codeigniter

Checkbox an values to transmit to database

Checkbox an values to transmit to database I'm new here and I need help with a PHP code. I want to transform a radio button into a checkbox, make it calculate the fee depending on how much checkboxes are checked, and to transmit the checked values to the predefined database. My code only takes the one predefined value for fee an doesn't actually adds them up when I click on the other checkbox. I tried everything but with no success. Here is the original unchanged code: <script src="<?php echo URL_FRONT_JS;?>jquery.js"></script> <script> function get_tutor_course_details() { course_slug = $('#course_slug option:selected').val(); selected_date = $('#start_date').val(); if(!course_slug || !selected_date) { $('#fee').text(''); $('#duration').text(''); $('#days_off').text(''); $('#content_li')....

Codeigniter task scheduling

Image
Codeigniter task scheduling I am not very much sure if my title question is correct, however i am facing sever error of multiple loops within foreach, despite of having only one item in array. I am pasting my code here; Display (Controller) $table_data = array( 'table_data' => $this->display_model->get_table_data($table_name), 'edit_table_data'=>$this->display_model->get_table_data($table_name,$row_id) ); $form_name='edit_'.$table_name; $this->load->view('header'); $this->load->view($form_name,$table_data); $this->load->view('footer'); You can see tabe_data and edit_table_data is calling same function with different parameter. Here i doubt on the time scheduling between these two function calls (which honestly i am wrong because codeigniter manages function calls) Display_model (Model) public function get_table_data($table_name,$row_id=null) { $return = "...

Onclick function not working with custom popup

Onclick function not working with custom popup I have created custom popup to show my records. I am using CodeIgniter, I am fetching records from database and display on the view page which is working. Now I have records in the view page like this EmpName EMPID Mobile No. Status Action xyz 122 0012141010 Pending view archive mnb 123 0124541021 Pending view archive poiu 124 0000000000 Approved view archive What I am doing is, When user click on " pending" then it will ask for confirmation popup "Are you sure want to continue?" If the user clicks on "Later" button then the popup will close. It will not take any action. There is no issue till now. " pending" "Are you sure want to continue?" "Later" Now let's talk about Sure button. Sure button not taking any action. I don't understand why it's not calling the submit action. Even it's not working on the archive. Sure Note: I don...