Errore 1064: You have an error in your SQL syntax
Posted: Sat Feb 25, 2012 10:13 am
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
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