Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Aug 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy How to delete data in HTML using checkbox and PHP script?

    I am facing this problem right now. I have the codes all working. The admin was suppose to able to view the data in database and delete the data as well.
    The data will be called out from the database. When the admin view the data, each row of information will contain the checkbox. What will be the correct script for deleting the information whenever the checkbox was checked?

  • #2
    Banned
    Join Date
    Aug 2010
    Location
    newyork
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts
    just write code. like
    delete from table
    where column=''(what you want to delete)

  • #3
    Regular Coder student101's Avatar
    Join Date
    Nov 2007
    Posts
    634
    Thanks
    80
    Thanked 15 Times in 15 Posts

    Smile

    Quote Originally Posted by hunnylensa View Post
    I am facing this problem right now. I have the codes all working. The admin was suppose to able to view the data in database and delete the data as well.
    The data will be called out from the database. When the admin view the data, each row of information will contain the checkbox. What will be the correct script for deleting the information whenever the checkbox was checked?
    Try this one:
    Update multiple rows in MySQL with checkboxes

    Just change the UPDATE statements to DELETE statements
    Thanks for your support!
    Update MySQL with checkboxes | Tell A Friend | Delete MySQL with checkboxes

    Give thanks & resolve when done :thumbsup:


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •