我错过了什么 得到
Parse error: syntax error, unexpected 'checkbox' (T_STRING), expecting ',' or ';' in C:\xampp\htdocs\index.php on line 70
if(mysql_num_rows($result) !== 0)
{
while($row=mysql_fetch_array($result))
{
echo '<tr>
<td>'.$row['aid'].'</td>
<td>'.$row['Name'].'</td>
<td>'."<input type="checkbox" class='form' value="1" name="checkbox[]" />".'</td>
</tr>';
}
}
最佳答案
更正此行
<td>'."<input type="checkbox" class='form' value="1" name="checkbox[]" />".'</td>
像这样
<td>'."<input type='checkbox' class='form' value='1' name='checkbox[]' />".'</td>
关于php - 如何将复选框添加到行结果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23355590/