Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/69.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PHP-插入按钮从MySQL表中删除一行_Php_Mysql - Fatal编程技术网

PHP-插入按钮从MySQL表中删除一行

PHP-插入按钮从MySQL表中删除一行,php,mysql,Php,Mysql,我有一个网站/论坛,你可以在那里发布东西。用户可以在他们的个人墙上张贴帖子。我想为墙上的每一个帖子都添加一个删除按钮。当我按下它来删除表中与该帖子相关的行时。我该怎么做呢?你能告诉我们你试过什么吗? <?php $entity = Post::getTheThings($id); $entity->deleteMehhhhh();

我有一个网站/论坛,你可以在那里发布东西。用户可以在他们的个人墙上张贴帖子。我想为墙上的每一个帖子都添加一个删除按钮。当我按下它来删除表中与该帖子相关的行时。我该怎么做呢?

你能告诉我们你试过什么吗?
<?php
    $entity = Post::getTheThings($id);
    $entity->deleteMehhhhh();