我知道这很简单,但我没有完成它。
$query = $this->db->get_where('prepared_forms', array('topic' => $this->input- >post('prepared_topics')));
$new_form = $query->row_array();如何按主题名称(ASC)排序准备好的表单?
发布于 2012-03-22 05:30:38
$this->db->select("*")
->from('prepared_forms')
->where('topic', $this->input->post('prepared_topics'))
->order_by('topic', 'asc')
->get()
->result_array();发布于 2012-12-11 16:34:05
试试这个:
$query = $this->db->order_by('topic', 'asc')->get_where('prepared_forms', array('topic' => $this->input->post('prepared_topics')));
$new_form = $query->row_array();发布于 2012-03-22 05:32:00
$this->db->order_by("topic", "asc");
$query = $this->db->get_where('prepared_forms', array('topic' => $this->input->post('prepared_topics')));
$new_form = $query->row_array();https://stackoverflow.com/questions/9813150
复制相似问题