我正在尝试在我的邮件交换应用程序中删除选项,以从收件箱中删除邮件或发送邮件。我在回声中做错了什么“
解析错误:C:\ Program Files(x86)\ EasyPHP-DevServer-14.1中的语法错误,意外的''(T_ENCAPSED_AND_WHITESPACE),期望标识符(T_STRING)或变量(T_VARIABLE)或数字(T_NUM_STRING)第45行的VC9 \ data \ localweb \ test \ msg \ inbox.inc.php
while ($rows = mysql_fetch_assoc($view_msg)) {
$id = $rows['id'];
echo "<tr>";
echo "<td>";
echo "<input name='checkbox[]' type='checkbox' id='checkbox[]' value='<?php echo $rows['id']; ?>' >";
echo "</td>";
echo "<td>";
echo "".$from = $rows['from_user']."";
echo"</td>";
echo "<td><a href='messages.php?id=read&mid=$id'>".$subject = $rows['subject']. "</td>";
echo "<td>";
echo "".$date = $rows['date']. "";
echo "</td>";
}
答案 0 :(得分:0)
更改此
echo "<input name='checkbox[]' type='checkbox' id='checkbox[]' value='<?php echo $rows['id']; ?>' >";
到
echo "<input name='checkbox[]' type='checkbox' id='checkbox[]' value='".$rows['id']."' >";
也是这些
echo "".$from = $rows['from_user']."";
和
echo "".$date = $rows['date']. "";
到
echo $from = $rows['from_user'];//if you need to store the value in $from otherwise no need of that
echo $date = $rows['date'];//same here