我有一个php/mysql应用程序,在这个应用程序中,数据库大致上包含以下字段:
我能够使用SELECT语句显示记录,没有问题。
现在,我希望能够做到以下几点,这就是我需要你帮助/建议如何实现这一目标的地方:
请让我知道你对如何做上述的建议。
谢谢TS
发布于 2016-07-23 12:16:38
为此,您可以使用记录的id,使用另一个选择查询获取特定记录的信息,还可以使用记录的id更新记录。(创建一个编辑链接并传递id,在编辑页面上获取该id的信息并保存它。)
发布于 2016-07-26 18:19:57
<?php //your db connection and select query here ?>
<form action="process.php" method="post" enctype="multipart/form-data">
<?php
// loop starts here
echo "<input type='checkbox' name='ids[]' value='".$row["id"]."' />";
// loop ends here
?>
<input type="submit" name="process" value="Processed"/>
</form>
This will create the checkboxes and on the process.php page
you can get the ids your need to process and can move your data
to other table/db where you want and after than redirect back to
to the page where your code is.
https://stackoverflow.com/questions/38541607
复制相似问题