How do I display results from a database into an input area?

后端 未结 1 1318
慢半拍i
慢半拍i 2021-01-29 08:15
            fetchRow()) {
                    $i++;
                    echo \'\';
             


        
相关标签:
1条回答
  • 2021-01-29 08:48

    Use double-quoted strings if you want variables to be parsed within :

    echo "<td><input value='{$row['moduleCode']}' />  </td>";
    

    or extract your variables :

    echo '<td><input value="'.$row['moduleCode'].'" />  </td>';
    
    0 讨论(0)
提交回复
热议问题