How To Delete Data Using Checkbox?

I need php coding to delete data

I want to make sure that the data deleted

#only data that is checked can be deleted
#data that are not checked cannot be deleted

so plz..........
help a programmer..

The situation is like the email system when user can choose which email they want to delete


  • The best way to do it is by using an array.

    This should look like your form:
    echo "";
    echo "";
    echo " $state){
    if ($state!=$oldactive[$id])

    password stuff etc
    $query="UPDATE databse SET active='$state', posted='$date' WHERE id='$id' ";
    echo "Record Updated

    Hope this helps you out. Good luck,

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion