[請益] 無法update

看板PHP作者 (孩子,這就是人蔘)時間18年前 (2007/12/23 17:22), 編輯推噓0(002)
留言2則, 2人參與, 最新討論串4/4 (看更多)
<?php require ("addb.php"); for($i=0;$i<count($_POST["order"]);$i++) { $order=$_POST["order"][$i]; $order_no=$_POST["order_no"][$i]; $sql="UPDATE ad_info SET order='$order' where no='$order_no'"; mysql_query($sql); } ?> $order和$order_no都可取到值,可是沒法更新資料 ,麻煩大家幫我看哪錯了,謝謝。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.228.177.6

12/23 17:41, , 1F
order 是保留字...前後各加上 ``
12/23 17:41, 1F

12/23 17:47, , 2F
萬般感謝
12/23 17:47, 2F
文章代碼(AID): #17RYZEe_ (PHP)
討論串 (同標題文章)
文章代碼(AID): #17RYZEe_ (PHP)