看板 PHP 關於我們 聯絡資訊
※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 59.105.93.249
yilenwu:試了一下~直接連在一起也不行@@ 10/20 23:20
LPH66:Oh my god....直接看這裡吧 http://tw.php.net/nl2br 10/20 23:27
我改成這樣不行@@ $insertSQL = sprintf("INSERT INTO epdata (ep_title, ep_content, ep_date) VALUES (%s, %s, %s)", GetSQLValueString($_POST['ep_title'], "text"), GetSQLValueString($_POST['ep_content'], "text"), GetSQLValueString($_POST['ep_date'], "date")); <?php echo nl2br($_POST['ep_content']) ?> 改成這樣也不行@@ $insertSQL = sprintf("INSERT INTO epdata (ep_title, ep_content, ep_date) VALUES (%s, %s, %s)", GetSQLValueString($_POST['ep_title'], "text"), <?php echo nl2br($_POST['ep_content'], "text") ?>, GetSQLValueString($_POST['ep_date'], "date")); 請問應該要怎樣改才對呢 我好像沒什麼慧根 對不起>< -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 59.105.93.249 ※ 編輯: yilenwu 來自: 59.105.93.249 (10/22 00:26)