Re: [請益] CHECKBOX回傳問題
※ 引述《appleboy46 (小惡魔)》之銘言:
: ※ 引述《angelmark (湖畔風晴)》之銘言:
可以幫我檢查一下,我哪裡做錯嗎
$del_user_id = implode(',', $_POST['choose']);
echo $del_user_id;
//輸出為 => 被點到,被砍到
$sql = "delete from table where row_name in (".$del_user_id.")";
echo $sql;
//輸出為 => delete from table where row_name in (被點到,被砍到)
一直無法刪成功
以前要手動多值刪除都會打成
delete from table where row_name in ( '被點到','被砍到' )
另外還有個問題,現在的值都是中文的,如果值變成
2009-05-26 18:54:06,2009-02-03 00:00:00 這種時間格式的話,
該怎麼輸出呢?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.127.72.91
※ 編輯: sdallan 來自: 59.127.72.91 (07/11 17:43)
推
07/12 00:00, , 1F
07/12 00:00, 1F
→
07/12 00:00, , 2F
07/12 00:00, 2F
→
07/12 00:01, , 3F
07/12 00:01, 3F
推
07/12 01:47, , 4F
07/12 01:47, 4F
→
07/12 01:49, , 5F
07/12 01:49, 5F
→
07/12 01:49, , 6F
07/12 01:49, 6F
→
07/12 01:50, , 7F
07/12 01:50, 7F
→
07/12 01:50, , 8F
07/12 01:50, 8F
推
07/12 01:59, , 9F
07/12 01:59, 9F
→
07/12 02:00, , 10F
07/12 02:00, 10F
推
07/12 02:49, , 11F
07/12 02:49, 11F
→
07/12 02:50, , 12F
07/12 02:50, 12F
→
07/12 02:50, , 13F
07/12 02:50, 13F
推
07/12 11:25, , 14F
07/12 11:25, 14F
→
07/12 11:26, , 15F
07/12 11:26, 15F
→
07/12 11:26, , 16F
07/12 11:26, 16F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 3 之 3 篇):
PHP 近期熱門文章
PTT數位生活區 即時熱門文章