Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.www.php > #20594

Re: query db

From Enrico Maria Chellini <bitit@bitit.it>
Newsgroups it.comp.www.php
Subject Re: query db
Date 2016-04-02 16:52 +0200
Organization www.bitit.it
Message-ID <ndomba$1lvt$1@gioia.aioe.org> (permalink)
References <2016032610042321718@mynewsgate.net> <nd5p61$2hk7$1@adenine.netfront.net>

Show all headers | View raw


Alex wrote:

> Halnow ha spiegato il 26/03/2016 :
> 
>>
>> ho provato anche ad aggiungere addslashes
>>
>> SELECT * FROM DB WHERE nominativo LIKE '%'.addslashes($nominativo).'%'
>>
>>
>> Grazie :)
> 
> Non credo che addslashes() possa funzionare dentro una query.
> Forse è meglio scrivere un codice un tantino meno concentrato. Con la
> query più semplice e chiara possibile.
> 
> Bye
> 

e insere nel database delle stringhe con htmlspecialcharacters ?

http://php.net/manual/en/function.htmlspecialchars.php

Enrico

Back to it.comp.www.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

query db "Halnow" <21718invalid@mynewsgate.net> - 2016-03-26 10:04 +0000
  Re: query db Alex <tommaso5ita@yahoo.it> - 2016-03-26 11:44 +0100
    Re: query db Enrico Maria Chellini <bitit@bitit.it> - 2016-04-02 16:52 +0200
      Re: query db Alessandro Pellizzari <shuriken@amiran.it> - 2016-04-02 20:24 +0000
        Re: query db Alex <tommaso5ita@yahoo.it> - 2016-04-03 13:45 +0200
          Re: query db Alessandro Pellizzari <shuriken@amiran.it> - 2016-04-03 13:32 +0000
            Re: query db Alex <tommaso5ita@yahoo.it> - 2016-04-03 18:30 +0200
              Re: query db Alessandro Pellizzari <shuriken@amiran.it> - 2016-04-03 18:12 +0000
                Re: query db Alex <tommaso5ita@yahoo.it> - 2016-04-04 11:05 +0200
  Re: query db Alessandro Pellizzari <shuriken@amiran.it> - 2016-03-26 17:48 +0000

csiph-web