开发者

How can I escape manually using the Database library with Kohana 3?

开发者 https://www.devze.com 2022-12-21 01:00 出处:网络
I need to quote a string a string in PHP using Kohana 3\'s Database library. In 2.3, all I had to do is $this->db->escape().

I need to quote a string a string in PHP using Kohana 3's Database library. In 2.3, all I had to do is $this->db->escape().

How can I do this in 3? I seem to remember seeing something like quot开发者_JS百科e() when I was viewing the source, but for the life of me can I find it again.


The Database class has a escape() method, look here.

0

精彩评论

暂无评论...
验证码 换一张
取 消