Forum Moderators: coopster
Same on both
"2. Check case sensitivity of table names." Do you mean a mysql setting?
"3. Check all other php.ini and my.cnf settings" not real sure what to look for, also not familiar with my.cnf
here is a typical error:
#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 'check . TableID AS TableID , `Status` , `ServerID` , `CreationDate` , `FoodAdjus' at line 1
thanks
M
Try adding the back-ticks around `check`.`TableID` as `TableID`
If you can't figure it out - care to give us a bit of a longer extract from the SQL than the error message gave? A few words each side at least...
$query_ClosedCheckDisplay = "SELECT `CheckID`, `check`.`TableID` AS TableID, `Status`, `ServerID`, `CreationDate`, `FoodAdjustText`, check.RID AS RID, `BarAdjustText`, check.Covers AS Covers, `AdjustFood`, `AdjustBar`, `Meal` , rtables.TableNumber AS TableNumber , rtables.ServersArea AS ServersArea , restaurants.FoodTax AS FoodTax , restaurants.MandatoryTipCovers AS MandatoryTipCovers , restaurants.MandatoryTipPercent AS MandatoryTipPercent , restaurants.TipPercent AS TipPercent , restaurants.BarTax AS BarTax
FROM `check`
JOIN rtables ON rtables.TableID = check.TableID
JOIN restaurants on restaurants.RID = check.RID
WHERE check.RID = '".$_SESSION['RID']."' AND `Status` = 'Closed' AND `ServerID` = '".$_SESSION['ServerID']."' AND date(check.CreationDate) = date(CURRENT_DATE)
ORDER BY TableNumber";
I added the ticks : `check`.`TableID` AS TableID and it still works on the powerbook and not on the macmini
Thanks
M
I would rename the check table to something else instead.