HELP query sql - Joomla! Forum - community, help and support


ho fatto un sito in locale utilizzando il mamp 1.3.1 (non che ver di mysql monti).
ora lo ho spostato sul server la query non funziona più.

l error dice di controllare la sintassi sul manuale del mysql e di confrontare le versioni, ma non ho trovato nulla, la sintassi mi sembra corretta.

la query è la seguente:

$query = ( "select a.*, b.description duration "
. "\nfrom #__alberghi_pricing a, #__alberghi_duration b"
. "\nwhere a.duration_id = b.id , a.accid = $accid "
. "\norder id desc "
. "\nlimit $limitstart, $limit"
);

confido in un vostro aiuto, grazie mille

tiro ad indovinare. sarà mica che il campo id è presente in entrambe le tabelle e quindi devi scrivere qualcosa del tipo

order nome_tabella.id desc

se no posta il messaggio di errore completo.





Comments

Popular posts from this blog

opencv3, tbb and rasp pi 2 - Raspberry Pi Forums

small ethernet problem - Raspberry Pi Forums

Multithumb configuration params not working? - Joomla! Forum - community, help and support