I have a text area that I want a list to be entered. I am trying to seperate each list item and put it into a seperate sql entry. Could some one tell me what I am dong wrong?
error_reporting(E_ALL);
ini_set('display_errors',1);
$textarray = explode("\n",$textarea);if(isset($_POST['textarea'])){
$textarea= $_POST['textarea'];
$q = "INSERT INTO Owners(Names) VALUES(:textarea);";
$query = $odb->prepare($q);
$results = $query->execute(array(
":textarea" => $textarea
));
}?>