[英]editing sql table data using php
I have the following php code to hyperlink another page to edit whatever data is on the table. 我有以下php代码可以超链接另一个页面以编辑表上的任何数据。 When I click the "edit" button it tells me the localhost is not found.
当我单击“编辑”按钮时,它告诉我找不到本地主机。 Is the code wrong?
代码是否错误?
editpage
is the name of the page where I have the edit code. editpage
是我拥有编辑代码的页面的名称。
<td style="text-align:center; vertical-align:middle;">
<?php echo "<a href='editpage.php?edit=$row[id]'>"?> Edit
</td>
Do you have access to the following page: 您是否可以访问以下页面:
http://localhost/editpage.php
You might need clean up your code: 您可能需要清理代码:
<style>
.ac { text-align: center; }
.vm { vertical-align: middle; }
</style>
<td class="ac vm">
<a href="editpage.php?id=<?php echo $row['id']; ?>">Edit</a>
</td>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.