Mysqli加入意想不到的“;”

时间:2015-04-15 01:20:51

标签: mysql

即将发生意外错误";"在这个代码上。不知道问题出在哪里:(

$getProducts = $mysqli->query("SELECT 
               orders.id AS id,
               orders_items.qty AS qty,
               shopping_products.title AS title
               FROM orders 
               JOIN orders_items ON orders_items.ordersID = orders.id
               JOIN shopping_products ON shopping_products.id = orders_items.shopping_productsID
               WHERE orders.authorID = ".$userID.""
);

0 个答案:

没有答案