Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "J.O. Aho" Newsgroups: comp.lang.php Subject: Re: Where did the parens come from Date: Mon, 10 Jul 2017 21:17:48 +0200 Lines: 14 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: individual.net CY7bPJobq7O4x617c4GC/ggrpUlOeaIN3xbFuo7U7UBO23Pzt2 Cancel-Lock: sha1:fObDNvGO1pap+xQ1j8030KQlLAA= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 In-Reply-To: Content-Language: en-GB Xref: csiph.com comp.lang.php:17528 On 07/10/17 20:19, bill wrote: > '$connection->real_escape_string({$postData['hName']})' > '(my name)' > The sql produced has parens around all the values to be saved (and it > shouldn't) and I can't figure out where they come form. I would guess it's your { and } which generates the parentheses, try with "$connection->real_escape_string($postData['hName'])" -- //Aho