last day (14 days later) » 

8:55 AM
0
A: Filtering and search in code igniter

Amit Chauhanyou might try like this ,Your Controller function code public function get_quick_search() { $s_data['sepcli'] = $this->input->post('spec'); $s_data['distct'] = $this->input->post('dist'); $s_data['locat'] = $this->input->post('locat'); $data['quck_search'] = ...

 
just wait i will try
 
okay sure . antroo ghosh
 
my list data this type <select name="spec" class="chosen-select form-control" id="form-field-select-3" id="spec" data-placeholder="Choose Category"> <?php if(isset($get_specs)): ?> <?php foreach($get_specs->result() as $rows): ?> <option value="<?php echo $rows->spec_id; ?>"><?php echo $rows->spec_specialise; ?> </option> <?php endforeach; endif; ?>
no result show blank page is showing
 
why are you used result again in foreach loop. you already got the result_array in controller when call to modal function . make sense !!
just print it out the $get_specs in view files , make sure its returns the correct data !!
 
retun query is empty
 
8:55 AM
try to print the query , using $this->db->last_query , see whats query is build then test it out on mysql , see if its has a error or what >>>
 
array(0) { } show this in retun query
 
have you print the query at least ?
 
yes that show's
what i std and ts
 
show me your query
when you used $this->db->last_query();
and the query is builded
 
9:19 AM
yes
sry for discontinues
i will check this query $query=$this->db->get()->result_array();
dear frnd i am new in codeigniter
$data['quck_search'] = $this->search_model->get_quick_list($s_data);
the quck_search is used to print all doctors in loop
the query retun 0 only
 

last day (14 days later) »