我需要從通過joins.every時間三個表得到具體列得到特定的列不言而喻wrong.my代碼從三個表
$saf=mysqli_query($db , "select pod.mobile, tpaidamount.Aptdate, follow.cent, pdate, time from pod,tpaidamount, follow where tpaidamount.pid = follow.pid and pod.Customer Id = tpaidamount.pid and pod.Customer Id =follow.pid ");
$i=1;
while($sfg=mysqli_fetch_assoc($saf) or die(mysqli_error($db)))
;
?>
pod,tpaidamount,follow are tables and other coloumns
入門錯誤 您的SQL語法錯誤;請檢查與您的MySQL服務器版本相對應的手冊,以便在第1行的'Id = tpaidamount.pid和pod.Customer Id = follow.pid'附近使用正確的語法。
已在「pod.Customer ID爲」一個空間,刪除客戶和Id – mulquin
它的這種方式之間的空間在表 – user3111955
使用反引號圍繞客戶ID,如果空間是列名。 – pritaeas