我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何在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');

近期文章

  • 从PHP脚本调用节点
  • laravel5.2 Auth :: guest()返回错误“Class'App \ Http \ Controllers \ Auth'not found”
  • 如果我的Xcode应用程序中的WebView有效,为什么它在我的Android应用程序中不起作用?
  • PHP / SQL消息算法
  • Symfony依赖注入xsd bug查询
  • Laravel 5.1代码优化
  • In_array不能使用$ term_id
  • 点击链接时会显示附加/管理员
  • 在空白窗口中打开数据库提供的链接
  • 优化对聚合的搜索结果的检索
  • eclipse / xdebug同时启动5个调试器
  • 数据库处理问题 - PDO插入问题
  • 如何使用jQuery在keypress'enter'上提交表单?
  • Laravel授权 - 将多个值传递给策略
  • php imap如何从身体(不是附件)获取嵌入的图像?
  • WooCommerce:基于邮政编码的结账页面上的税收计算
  • 将自定义字段值添加到产品仪表板 - 简易数字下载
  • PHP - 如何引用驻留在对象内的另一个对象的类变量(属性)?
  • 将magento交易电子邮件logo_url更改为外部链接
  • 数组和$ _REQUEST

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华