Errore 1064: You have an error in your SQL syntax

Inviate qui le vostre segnalazioni se pensate di aver trovato un errore in hoteldruid o nella sua documentazione.

Moderator: marco

Post Reply
pj
Posts: 6
Joined: Tue Nov 18, 2008 12:09 pm

Errore 1064: You have an error in your SQL syntax

Post 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
marco
Posts: 1332
Joined: Tue Jul 05, 2005 6:00 pm
Location: Roma, Italia

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

Post by marco »

Ciao Piergiorgio,
prova a sostituire il file tabella.php con questo:

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

Saluti,
Marco
Problems installing, configuring, upgrading?
Try the easiest way to use HotelDruid:
https://www.digitaldruid.net/hosted/index.php
pj
Posts: 6
Joined: Tue Nov 18, 2008 12:09 pm

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

Post by pj »

Ciao Marco.

Risolto col tuo file, grazie!

Piergiorgio
Post Reply