PHP:复选框以删除数据库值 [英] PHP: Checkbox to delete database values

查看:266
本文介绍了PHP:复选框以删除数据库值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我是PHP的新手,不知道我的代码出错了。


我是试图创建一个数据库,将数据从表单插入数据库(工作和显示数据等),下一部分是每行可以勾选一个复选框,然后删除该记录。


下面是一段代码示例

展开 | 选择 | Wrap | 行号

解决方案


大家好,

我是PHP的新手,不确定w这里我错了这个代码。


我正在尝试创建一个数据库,将数据从表单插入数据库(工作和显示数据等),下一部分我要勾选每行旁边的复选框,然后删除该记录。


下面是代码示例


{

echo"< tr>" ;;

echo"< td>" 。


row [''id'']。 "< / td>";

echo"< td>" 。


row [''name'']。 "< / td>";

echo"< td>"

Hi all,
I''m pretty new to PHP, not sure where I am going wrong with this code.

I''m trying to make a database that inserts data from a form to the database (that works and displays data etc), next part is to have a checkbox next to each row that I can tick, then delete that Record.

Heres a sample of the code

Expand|Select|Wrap|Line Numbers

解决方案

Hi all,
I''m pretty new to PHP, not sure where I am going wrong with this code.

I''m trying to make a database that inserts data from a form to the database (that works and displays data etc), next part is to have a checkbox next to each row that I can tick, then delete that Record.

Heres a sample of the code

{
echo "<tr>";
echo "<td>" .


row[''id''] . "</td>";
echo "<td>" .


row[''name''] . "</td>";
echo "<td>" .


这篇关于PHP:复选框以删除数据库值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆