dpquu9206 2016-01-22 02:42 采纳率: 0%
浏览 23

如何在codeigniter 3获取结果之前保存数据库查询

I use those function to get the database result. I want to save all "select", "where"... etc query and load this for other function to use

$this->select('title, content, date');
$this->db->where('name', $name);
// Save the query here...

// Do other query
$this->db->select('name');
$query = $this->db->get('other_table');

// Load the query from the save point here
$query2 = $this->db->get('mytable');
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 关于大棚监测的pcb板设计
    • ¥15 stm32开发clion时遇到的编译问题
    • ¥15 lna设计 源简并电感型共源放大器
    • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
    • ¥15 Vue3地图和异步函数使用
    • ¥15 C++ yoloV5改写遇到的问题
    • ¥20 win11修改中文用户名路径
    • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
    • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
    • ¥15 帮我写一个c++工程