日期:2014-05-17 浏览次数:20390 次
$ar = preg_splie("/[\r\n]+/", $_POST['text'], 0, PREG_SPLIT_NO_EMPTY); $sql = "INSERT INTO tbl_name ( textfield ) VALUES "('" . join("'),('", $ar) ."')";