salve,
ho un problema alquanto insolito... premetto che la classe che uso, la utilizzo da anni e non mi ha mai dato problemi...
io dalla pagina faccio una query al DB mysql.. la pagina che rimane bianca.. debuggando ho trovato questo errore (vedi sotto).. sembra che lo script abbia qualche problema di codifica...
a nessuno è mai capitato??
Codice PHP:
$query = $DB->query("(SELECT id AS id, titolo AS titolo, breve AS breve, photo AS photo, CONCAT_WS("|", CAST(user AS CHAR(10000) CHARACTER SET utf8), CAST(data AS CHAR(10000) CHARACTER SET utf8)) AS misc FROM sito_news WHERE (titolo LIKE '%$q%' OR breve LIKE '%$q%' OR descrizione LIKE '%$q%'))");
codice:
===================================================
Date: Mon, 23 Jan 2012 01:01:50 +0100
Error: ERROR: Database error.
Cannot execute the query: .(wwmwotditaisa{dmiwkto~omastv~o,wjwwwe(u{to~ovmmkuhouoia%whovonrgocM]_Ws/%ciao%' OR descrizione LIKE '%ciao%'))
MySql Error returned: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.(wwmwotditaisa{dmiwkto~omastv~o,wjwwwe(u{to~ovmmkuhouoia%whovonrgocM]_Ws/%' at line 1
MySql Error code: 1064
IP Address: **.**.**.**
Page: /home/utente/public_html/beta/index.php
EDIT: chiudete pure, ho fatto la figura dell'utonto
codice:
CONCAT_WS("|", ...) => CONCAT_WS('|', ...)