Jump to content

Yohanne

Members
  • Content count

    206
  • Joined

  • Last visited

Community Reputation

1 Neutral

About Yohanne

  • Rank
    Advanced Member
  • Birthday 03/07/1989

Profile Information

  • Gender
    Not Telling
  • Location
    Philippines
  1. when i add two text field below, branchname and pickdate i got the error message. if (!$json) { $this->session->data['shipping_method'] = $this->session->data['shipping_methods'][$shipping[0]]['quote'][$shipping[1]]; $this->session->data['branchnamed'] = $this->request->post['branchname']; $this->session->data['pickup_dated'] = $this->request->post['pickup_date']; $this->session->data['comment'] = strip_tags($this->request->post['comment']); } $this->response->addHeader('Content-Type: application/json'); $this->response->setOutput(json_encode($json)); error.. SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data OK <b>Notice</b>: Undefined index: branchname in <b>/home/octagon/public_html/ocs_shop/upload/catalog/controller/checkout/shipping_method.php
  2. Hi coders, i have added new fields for store branch and pick-up date, but i cannot insert the data in the said fields. i try many times but i cannot get it. so please help. give me an instruction where i did get wrong.. opecart v2.3
  3. do you have any other solution on it?
  4. i use VAR/CHARs and i think its too late to change it into DATE. its already have data more than 70k.
  5. Hi coders, how to group by a month and year if i have a data date format like this. 10/23/2014 12/23/2015 11/23/2016 01/23/2016 01/23/2016 06/23/2014 06/23/2014 06/23/2014 Thanks
  6. Yohanne

    CI pagination current page not changing

    view <div id="pagination"> <?php echo $pages; ?> </div> controller $config["base_url"] = base_url() . "index.php?dir-move=public&switch=branch_reports&task=branch_report_por"; $config["total_rows"] = $this->model_ho_por->page_count_for_br_por_sr_report(); //return $this->db->count_all('por_ho_request_compile'); $config["per_page"] = 3; $config["uri_segment"] = 3; $config['num_links'] = 2; $config['page_query_string'] = true; $config['full_tag_open'] = '<ul class="pagination">'; $config['full_tag_close'] = '</ul>'; config['prev_link'] = '<'; $config['prev_tag_open'] = '<li>'; $config['prev_tag_close'] = ''; $config['first_link'] = 'First'; $config['first_tag_open'] = '<li>'; $config['first_tag_close'] = ''; $config['next_link'] = '>'; $config['next_tag_open'] = '<li>'; $config['next_tag_close'] = ''; $config['cur_tag_open'] = '<li class="active"><a href="">'; $config['cur_tag_close'] = '</a></li>'; $config['num_tag_open'] = '<li>'; $config['num_tag_close'] = ''; $config['last_link'] = 'Last'; $config['last_tag_open'] = '<li>'; $config['last_tag_close'] = ''; $this->pagination->initialize($config); $page = ($this->uri->segment(3))? $this->uri->segment(3) : 0; $data["load_rs_report"] = $this->model_ho_por->branch_ho_sr($config["per_page"], $page); $data["pages"] = $this->pagination->create_links(); $this->load->view('public/branch_reports/por_sr',$data); model $data = array(); $this->db->limit($limit, $start); $this->db->select('por_ho_request_compile.*,stocks.*,users.*,smr_request_subject.*,por_ho_received_compile.*'); $this->db->select('ufrom.branch_name as branch_from,ufrom.branch_code as from_brc'); $this->db->select('uto.branch_name as branch_to,uto.branch_code as to_brc'); $this->db->select('ho_received.uid,ho_received.first_Name as ho_received_by_fname'); $this->db->select('branch_served.uid,branch_served.first_Name as branch_served_fname'); $this->db->from('por_ho_request_compile'); $this->db->join('stocks','por_ho_request_compile.por_ho_sid = stocks.stock_id','left'); $this->db->join('por_ho_received_compile','por_ho_request_compile.por_id = por_ho_received_compile.por_id','left'); $this->db->join('users','por_ho_request_compile.por_ho_by = users.uid','left'); $this->db->join('users as ufrom','por_ho_request_compile.por_ho_from = ufrom.branch_code','left'); $this->db->join('users as uto','por_ho_request_compile.por_ho_to = uto.branch_code','left'); $this->db->join('users as ho_received','por_ho_received_compile.por_received_uid = ho_received.uid','left'); $this->db->join('users as branch_served','por_ho_request_compile.br_by = branch_served.uid','left'); $this->db->join('smr_request_subject','por_ho_request_compile.por_ho_sbj = smr_request_subject.id_subject', 'left'); $this->db->where('por_ho_request_compile.por_ho_from', $bc); $this->db->where('por_ho_request_compile.por_ho_temp',4); $this->db->group_by('por_ho_request_compile.por_id'); $this->db->order_by('por_ho_request_compile.br_sr','desc'); $this->db->order_by('por_ho_request_compile.por_ho_from','asc'); $query = $this->db->get(); foreach ($query->result_array() as $row) { $data[] = $row; } return $data;
  7. Hi Coders, i just wanna know on how to set-up pagination while enable_query_strings is enable or set to true. i tried in many ways but im failed. and i just get the link work but the data cannot retrieved for the next page. $config["base_url"] = base_url() . "index.php?dir-move=public&switch=branch_reports&task=branch_report_por"; $config["total_rows"] = $this->model_ho_por->page_count_for_br_por_sr_report(); $config["per_page"] = 3; $config["uri_segment"] = 3; $config['num_links'] = 2; $config['page_query_string'] = true; $config['full_tag_open'] = '<ul class="pagination">'; $config['full_tag_close'] = '</ul>'; config['prev_link'] = '<'; $config['prev_tag_open'] = '<li>'; $config['prev_tag_close'] = ''; $config['first_link'] = 'First'; $config['first_tag_open'] = '<li>'; $config['first_tag_close'] = ''; $config['next_link'] = '>'; $config['next_tag_open'] = '<li>'; $config['next_tag_close'] = ''; $config['cur_tag_open'] = '<li class="active"><a href="">'; $config['cur_tag_close'] = '</a></li>'; $config['num_tag_open'] = '<li>'; $config['num_tag_close'] = ''; $config['last_link'] = 'Last'; $config['last_tag_open'] = '<li>'; $config['last_tag_close'] = ''; $this->pagination->initialize($config); $page = ($this->uri->segment(3))? $this->uri->segment(3) : 0; $data["load_rs_report"] = $this->model_ho_por->branch_ho_sr($config["per_page"], $page); $data["pages"] = $this->pagination->create_links(); and got link below but the data are not change, ?dir-move=public&switch=branch_reports&task=branch_report_por&per_page=1 ?dir-move=public&switch=branch_reports&task=branch_report_por&per_page=2 ?dir-move=public&switch=branch_reports&task=branch_report_por&per_page=3 ?dir-move=public&switch=branch_reports&task=branch_report_por&per_page=4 ?dir-move=public&switch=branch_reports&task=branch_report_por&per_page=5
  8. Yohanne

    Simple If var == var Help. (Newbie)

    hope it could give you an idea. if(date( 'M') == 'Jan' || date( 'M') == 1) { echo "month"; } elseif(date( 'M') == 'Feb' || date( 'M') == 2) { echo "month"; } elseif(date( 'M') == 'Mar' || date( 'M') == 3) { echo "month"; } elseif(date( 'M') == 'Apr' || date( 'M') == 4) { echo "month"; } elseif(date( 'M') == 'May' || date( 'M') == 5) { echo "month"; } elseif(date( 'M') == 'Sep' || date( 'M') == 9) { echo "month"; } else { return false; }
  9. Yohanne

    post array

    i already trying here, but don't get the logic.. and how do i get the value of input text. i mean is, where is the input text value here
  10. Yohanne

    post array

    Hi coders, i just want to display the each value of input text but i don't get it, any advice where i go wrong.. no database required. <input type='text' name = 'val1[]' value='asasas'> <input type='text' name = 'val2[]' value='asasas'> <input type='text' name = 'val1[]' value='sdsddd'> <input type='text' name = 'val2[]' value='sdsdsd'> $value1 = $this->input->post('val1'); $value2 = $this->input->post('val2'); $array = array(value1, value2); echo $comma_separated = implode(",", $array);
  11. Yohanne

    best PHP framework for PHP newbie

    i would recommend you is YII
  12. Yohanne

    Problem with include statement

    <?php include '../inc/chaserData.php'; ?>
  13. i just gave an idea and what is wrong. . .?
×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.