CREATE TABLE `configurazione` (
`ID` int(10) NOT NULL auto_increment,
`Identificativo` text NOT NULL,
`Titolo` text,
`Testo` text NOT NULL,
`Lingua` text NOT NULL,
PRIMARY KEY (`ID`),
UNIQUE KEY `ID` (`ID`),
KEY `ID_2` (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=57 ;
( i campi delle tabelle hanno collation utf8_general_ci )
e la query è
$query="SELECT Identificativo,Testo FROM configurazione WHERE ((Identificativo = 'prova')) && (Lingua='IT'))";
e non funziona nenache con
$query = "SELECT Identificativo,Testo,Titolo FROM configurazione WHERE Identificativo = CONVERT( _utf8 'prova' USING latin1 ) COLLATE latin1_bin";