3
發現瞭如何查找PHP問題。我現在正在努力解決這些問題,但我不知道這個問題。存在未知列的MySQL警告
我利用mysql_error的,我發現:
1054: Unknown column 'o.user_id' in 'on clause'
有什麼不對的:
$sql="SELECT o.*, u.user_name, u.email, od.artist_id,cm.nexchange_price
FROM ".$tableprefix."orders o,".$tableprefix."currency_master cm
INNER JOIN ".$tableprefix."users u ON o.user_id = u.user_id
INNER JOIN ".$tableprefix."order_details od ON o.order_id = od.order_id
WHERE o.order_id = ".GetSQLValueString($orderid,"text")."
AND o.vorder_currency = cm.vcurrency_code ".$qryopt . " ORDER BY o.order_date DESC";
這列中的訂單表中存在?
非常感謝!完美工作! :) – Abs 2009-07-19 20:30:18