Page 1 of 1

Errore 1064: You have an error in your SQL syntax

Posted: Sat Feb 25, 2012 10:13 am
by pj
Salve,

Dopo aver modificato il seguente privilegio di un utente:

Possibilità di vedere la tabella dei mesi: Si Solo con "prenotazioni proprie" e camere consentite "a lui"

visualizzando la tabella prenotazioni per mese, il programma genera il seguente errore:

<-- Tabella prenotazioni del 5-2012. -->

ERROR IN: select * from prenota2012 where iddatainizio <= '152' and iddatafine >= '121' and (idappartamenti is NULL or ()) and ( utente_inserimento = '3' or utente_inserimento = '2' )
1064: 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 ')) and ( utente_inserimento = '3' or utente_inserimento = '2' )' at line 1

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /mioserver/web/hoteldruid/includes/funzioni_mysql.php on line 104

Qualche idea su come risolvere la cosa?
Grazie.

Piergiorgio

Re: Errore 1064: You have an error in your SQL syntax

Posted: Mon Feb 27, 2012 9:25 pm
by marco
Ciao Piergiorgio,
prova a sostituire il file tabella.php con questo:

http://www.digitaldruid.net/download/tabella.zip

Saluti,
Marco

Re: Errore 1064: You have an error in your SQL syntax

Posted: Wed Feb 29, 2012 7:56 pm
by pj
Ciao Marco.

Risolto col tuo file, grazie!

Piergiorgio