Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Alessandro Pellizzari Newsgroups: it.comp.www.php Subject: Re: operatore jolly mysql Date: Thu, 14 Feb 2019 16:11:36 +0000 Lines: 12 Message-ID: References: <20190213122856.517154c6@nntp.aioe.org> <20190213161104.046da42f@nntp.aioe.org> <20190214113023.4c7665b5@nntp.aioe.org> <20190214114846.248af45e@nntp.aioe.org> <20190214120055.4b5f1b19@nntp.aioe.org> <20190214162342.51129c53@nntp.aioe.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net AroCcaWwXzqQNN9byGS2fAY/RxEMN5CSX+RvJMA8ZKmZGA7Hk= Cancel-Lock: sha1:fyT7KXsoe5N0U0YLeZW5r/A6lhM= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 In-Reply-To: Content-Language: en-GB Xref: csiph.com it.comp.www.php:22563 On 14/02/2019 15:57, logica mente wrote: >         $q .= $conc . $item[0]. '=' . $_GET[$item[1]]; Occhio che questa è una SQL injection in attesa di esplodere. :) Ma mi hai fatto notare un bug nel mio codice: se non ci sono condizioni la mia query fallisce. Bisogna attaccare la parte `where` solo se $wheres non è vuoto. Bye.