找到了如何找到 PHP 问题。我现在正试图解决它们,但我对此一无所知。
我使用了 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";
该列存在于订单表中?!