Show all rows in mysql table then give option to delete specific ones

前端 未结 3 1237
无人及你
无人及你 2021-02-03 14:56

I want to have the ability to show all the entries in a database table and by each one give the user the ability to delete specific ones.

I am currently using a for each

3条回答
  •  庸人自扰
    2021-02-03 15:48

    I thought I would improve on this a little bit by wrapping the delete post in a class and function. I was having the same problem. and this worked great for me. Thanks again @ Quasdunk

    ';
                echo '
    '; echo $row['post_text'] . '
    '; $postID = $row['post_id']; echo '
    '; echo 'You posted this on: ' . $row['post_date'] . '@' . $row['post_time']; echo '
    '; echo '
    '; echo '
    '; echo '
    '; } } ?>

提交回复
热议问题