Re: escaping ' when inside a " "
| From: | Marek Kilimajer | Date: | Mon, 17 Nov 2003 21:53:16 +0000 |
| Subject: | Re: escaping ' when inside a " " | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-170018@lists.php.net to get a copy of this message | ||
Adam Williams wrote:
If I have the SQL statement: $sql = "select subject from subwhile where subject = '*$var[0]*'";Don't you want to do: $sql = "select subject from subwhile where subject LIKE '%$var[0]%'";