Re: Struggling with code
| From: | Jason Wong | Date: | Thu, 05 Dec 2002 10:27:31 +0000 |
| Subject: | Re: Struggling with code | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-127124@lists.php.net to get a copy of this message | ||
On Thursday 05 December 2002 16:43, Hugh Danaher wrote:
> Great to hear it works!
> I'd still consider using addslashes and the only way I've gotten it to work
> is to write them in like the following:
> url='".addslashes($url)."'
> Looks messy but works.
Messy indeed ;) Why not $url = addslashes($url) beforehand THEN use it to
construct the query?
> Oh, and stripslashes on the output too.
No need for stripslashes() when _retrieving_ from the db.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
People will do tomorrow what they did today because that is what they
did yesterday.
*/