Datalist仅显示和提供第一个单词

OK, Let's start again. The purpose of this code is to update a database table (db.aotm) comprising the club members who will be featured during the coming year as "The Artist of the Month". The first (html)table shows a list of members who gualify as Features Artists. Their names are hald in the $featuredArtist array.

Next, the $aotm array is populated with the current list of "month" and "member" held in the db.aotm table these are used as the default values of the form. Then the datalist is populated with names from the $featuredArtist array.

The problem is that when the Form Input box is clicked the datalist box only shows the first name of each artist and any selection only enters the first name. I have tried using a simple variable instead ogf th array in the datalist but the same happens if $name = "John Smith"; then only "John" is displayed and entered into the input box. If I replace the soft datalist a hard coded datalist then it functions normally. So it seems tha any variable in the datalist only serves the first word.

My code is :

<?php
echo '<div class="dbrd"> 
$query = " SELECT id, status, fullname FROM members ";
$result = mysqli_query($db, $query);
$i = 0;
while ($row = mysqli_fetch_assoc($result)) {
    if (bitN($row[status],2) == 1 && $row[id] > 20){
        $featuredArtist[$i]['id'] = $row['id'];
        $featuredArtist[$i]['artist'] = $row['fullname'];
        $i++;
    }
}   

?>                      
<div style="text-align:center;width:100%;">
    <table style="width:100%;">
        <thead>
            <tr><th colspan="3">Featured Artists</th></tr>
        </thead>
        <tbody>
<?php                                   
            $j = 0; 
            while ($j < $i){
                echo " <tr><td>".$featuredArtist[$j]['artist']."</td>";
                $j++;
                echo " <td>".$featuredArtist[$j]['artist']."</td>";
                $j++;
                echo " <td>".$featuredArtist[$j]['artist']."</td></tr>";
                $j++;
            }
?>
        </tbody>
    </table>
        <br />
</div>
<?php
$query = "SELECT id, artist FROM aotm";
$result = mysqli_query($db, $query);
$k = 0;
while ($row = mysqli_fetch_assoc($result)) {
    $aotm[$k]['id'] = $row['id'];
    $aotm[$k]['artist'] = $row['artist'];
    $k++;
}
$l = 0;
echo '<datalist id = "artist">';
    while ($l < $i) {
        $artist = $featuredArtist[$l]['artist'];
        echo " <option value = ".$artist.">";
        $l++;
    }
?>                      
</datalist>

<form action = "" method = "POST">
    <table style="width:100%;">
        <tbody>
            <tr><td>Jan</td><td><input type = "text" list = "artist" name="1" size = "45" ></td></tr>
            <tr><td>Sept</td><td><input list = "artist" type = "text" name="2" value = "<?php echo $aotm[1]['artist'];?>" size = "45" /></td></tr>

            <tr><td colspan="2"><input type = "submit" name = "aotm" value = "Save" /></td></tr>
        </tbody>
    </table>
</form>
</div>