在php中的foreach表中添加编辑按钮
请告诉我如何正确地写这个,我需要有一个编辑图标为每一行我的表在php中的foreach表中添加编辑按钮,php,symfony,for-loop,foreach,doctrine-orm,Php,Symfony,For Loop,Foreach,Doctrine Orm,请告诉我如何正确地写这个,我需要有一个编辑图标为每一行我的表 echo "<td>"<a href='editservice?edit=.$docrow->getId().'>Edit</a>"</td>"; echo“”; 您没有正确地用变量缝合字符串。试试这个 echo "<td><a href='editservice?edit=".$docrow->getId()."'>Edit</a&g
echo "<td>"<a href='editservice?edit=.$docrow->getId().'>Edit</a>"</td>";
echo“”;
您没有正确地用变量缝合字符串。试试这个
echo "<td><a href='editservice?edit=".$docrow->getId()."'>Edit</a></td>";
echo”“;
您没有正确地用变量缝合字符串。试试这个
echo "<td><a href='editservice?edit=".$docrow->getId()."'>Edit</a></td>";
echo”“;
试试这个:
<td><a href="editservice?edit=<?php echo $docrow->getId()?>">Edit</a></td>
试试这个:
<td><a href="editservice?edit=<?php echo $docrow->getId()?>">Edit</a></td>
echo';
echo';