RE: [PHP-DB] Slashes or no slashes
[email protected] ("Daevid Vincent")
| Newsgroups | php.db |
|---|---|
| Message-ID | <[email protected]> |
You should be using http://us2.php.net/manual/en/function.mysql-escape-string.php You don't need to search with extra slashes for retrieval. > -----Original Message----- > From: Karl DeSaulniers [mailto:[email protected]] > Sent: Thursday, August 19, 2010 2:29 PM > To: [email protected] > Subject: [PHP-DB] Slashes or no slashes > > Hello, > When I add an item to my database and I use addslashes(), > do I have to use addslashes() to a query that looks for that item? > Or would I be adding double slashes and canceling my own result? > TIA > > Karl DeSaulniers > Design Drumm > http://designdrumm.com > >