CodeIgniter:这条线的代码是什么? [英] CodeIgniter: What's the right code for this line?
本文介绍了CodeIgniter:这条线的代码是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我无法弄清楚这是什么语法:
Hi,
I cant figure out what's the right syntax for this:
this->db->where ('Username',$session_username);
我正在尝试使用$ session_username的值作为mysql WHERE的过滤器。
I'm trying to use the value of the $session_username as a filter for mysql WHERE.
$session_username = $this->session->userdata('Username');
我能够回应所有这些代码都属于模型里面的$ esssion_username所以我确定
它不是一个变量类型的问题。
谢谢,
I was able to echo the $esssion_username inside the model where all this code belongs so I'm sure
it's not a variable type problem.
Thanks,
推荐答案
session_username);
session_username);
I我试图使用
I'm trying to use the value of the
session_username的值作为mysql WHERE的过滤器。
session_username as a filter for mysql WHERE.
session_username =
session_username =
这篇关于CodeIgniter:这条线的代码是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文