您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

您的SQL语法有误;第1行的'order(cust_id,order_date,order_total,order_state,order_city,order_add,order'附近)

您的SQL语法有误;第1行的'order(cust_id,order_date,order_total,order_state,order_city,order_add,order'附近)

使用此代码

<?PHP
include("dbconnection.PHP");

if ($_SESSION["loggedin"] != "true") {
header("Location:memberlogin.PHP");
}

$cust_id = $_SESSION["cust_id"];

$result = MysqL_query("select customer.*, product.*, order_details.* from customer, product,      
order_details where customer.cust_id=$cust_id and product.pro_id=product.pro_id and    
order_details.order_details_id = order_details.order_details_id")or die(MysqL_error());

$row = MysqL_fetch_assoc($result);  
?>

并使用本指南>>http://www.w3schools.com/php/php_syntax.asp

SQLServer 2022/1/1 18:31:15 有488人围观

撰写回答


你尚未登录,登录后可以

和开发者交流问题的细节

关注并接收问题和回答的更新提醒

参与内容的编辑和改进,让解决方法与时俱进

请先登录

推荐问题


联系我
置顶