|
From: | Dan Kuykendall |
Subject: | Re: [Phpgroupware-developers] proposal-branch; porting |
Date: | Wed, 21 Apr 2004 22:13:38 -0700 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 |
Joseph Engo wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 sigurdne wrote: | How about $GLOBALS['phpgw']->db->db_addslashes() There are 2 things you can do for this. If you are getting your values from a form, safeargs will take care of adding slashes to it. Outside of that, you can just use addslashes() from PHP. To be honest, I can't remeber why we created our own function for handling this. Does anyone remeber ? :P
There is a function for this in ADODB. The reason for it is that some servers use a different escape than \
* Quotes a string, without prefixing nor appending quotes. */ function addq($s,$magicq=false)
[Prev in Thread] | Current Thread | [Next in Thread] |