PHP只显示表中第一个字符串

thu*_*ief 1 php mysql sql codeigniter

我正在从MySQL查询中动态创建一个表.出于某种原因,下面的'notes'字段只返回字符串的第一个单词,虽然当我用echo($notes)它测试它时显示就好了. $status同样设置,也很好.我错过了什么?我假设它与使用值预填充文本字段有关.我正在使用codeigniter.

$notes = empty($row["notes"]) ? "None" : $row["notes"];
    echo($notes);
    echo('
    <tr class="even">
        <td class="status-icons">'.$error_level.'</td>
        <td>'.$row["name"].'</td>
        <td>'.$status.'</td>
        <td class="notes-col">
          <input type="text" name="submit_notes" value='.$notes.' class="notes-copy">
        </td>
    </tr>'
Run Code Online (Sandbox Code Playgroud)

ech*_*_Me 14

替换这个

   value='.$notes.'
Run Code Online (Sandbox Code Playgroud)

    value="'.$notes.'"
Run Code Online (Sandbox Code Playgroud)

双引号是Value因为它最初有两个引号,如:value=""