Mysql
 sql >> Base de Dados >  >> RDS >> Mysql

Inserção do MySQL de uma área de texto para várias linhas


Tente isto:
$text = trim($_POST['textareaname']);
$textAr = explode("\n", $text);
$textAr = array_filter($textAr, 'trim'); // remove any extra \r chars

foreach ($textAr as $line) {
    // Your sql Query here with $line as the string.
}