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

如何在codeigniter中动态更改当前数据库

I'm trying to change the database name before a query using codeigniter.

I read a lot of questions here that explain how to use config/database but I cant use this solution because the name of the databases stays recorded on another database.

I'm trying to do an API that check the user, then grab the database_path, then run a command at this database...

And I'm unable to solve it.

Any helps are welcome

近期文章

  • LessQL Like运算符
  • 从数据库查询结果中逐步提取数据
  • 用于测试页面上所有链接的递归函数
  • 重定向到特定网址?
  • 无法通过php检索jquery设置值
  • 如何将datetime-local输入转换为php变量?
  • 如何在laravel 5.6中下载pdf文件?
  • 错误导入CSV文件Crontab
  • 尝试从api获取json数据,然后在站点Angular 6中发布
  • 如何为格式化的回复创建输入字段,并在mysql和php中输出作为输入
  • ajax插入并选择连续不正常工作
  • 在laravel控制器中不重复的随机字符串生成器
  • 如何通过ajax在php上发送多个创建的输入字段的值
  • Wordpress:如果将html / php混合到帖子中,则插入块的最佳做法
  • DateTime-> format()不返回字符串
  • 检查SQL PHP上的两列是否匹配
  • 找不到工作的Laravel Routes 404
  • PHP和FITS(灵活的图像传输系统)
  • 如何在php中创建带有模糊图像背景的图像
  • 与Php / mysqli的麻烦 - 不再工作

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华