This topic is locked

Query error ver 5.0

10/22/2008 1:49:04 PM
PHPRunner General questions
M
maxcolo author

Hi,

this query workly in phprunner 5.0, but in local server error :
[codebox]select

pos.posizione,

pos.posti_totali,

SUM(pre.coperti) AS Occupati,

posti_totali-SUM(pre.coperti) AS disponibili

FROM prenotazioni AS pre

INNER JOIN posti AS pos ON pre.id_posto = pos.id_posto

WHERE pos.posizione ='veranda' AND pre.`data` = '2008-10-25'

GROUP BY pre.`data`, pre.id_posto[/codebox]
[codebox]Informazioni tecniche

Errore di tipo 256

Errore di descrizione Unknown table 'prenotazioni' in where clause

URL localhost/ristoonline/output/Copy_of_prenotazioni_list.php?

Errore di file C:\WM\www\ristoonline\output\include\dbconnection.php

Errore di linea 34

Query SQL select pos.posizione, pos.posti_totali, SUM(pre.coperti) AS Occupati, posti_totali-SUM(pre.coperti) AS disponibili FROM prenotazioni AS pre INNER JOIN posti AS pos ON pre.id_posto = pos.id_posto where (pos.posizione ='veranda' AND pre.`data` = '2008-10-25' ) and (`prenotazioni`.`id_utente`='5') GROUP BY pre.`data`, pre.id_posto

[/codebox]
What is the problem?

Sorry for my english

Best regards

J
Jane 10/23/2008

It's difficult to tell you what's happening without seeing actual files.
Please publish your project on Demo Account and send to support@xlinesoft.com a URL to your pages along with instructions on reproducing this error.

I'll find what's wrong with your project inspecting it at Demo account site.