Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3697858
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:54:39+00:00 2026-05-19T04:54:39+00:00

So I am working on a registration system for the place I worked at

  • 0

So I am working on a registration system for the place I worked at this summer. I have a system where they can “add” things to a basket, but I figured that I also will need to give them the option to delete those items if they so wish. My question comes in here, is there a way to delete a record from the database and update the page in real time? I am using PHP, MySQL, and jQuery.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T04:54:39+00:00Added an answer on May 19, 2026 at 4:54 am

    Adarsh is correct, use an Ajax post:

    basic example of your cart page off the top of my head using jQuery:

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>    
    <script language="javascript">
        $(document).ready(function(){
            $(".deleteItem").click(function());
            var dataString = "deleteID="+$(this);
            $.ajax({
                type: "POST",
                dataType: "HTML",
                url: "deleteScript.php",
                data: dataString,
                success: function(data) {
                    $("#LI"+$(this)).remove();
                }
            });
        });
        </script>
    
        <ul>
            <li id="LI1">
                <input type="button" class="deleteItem" id="1"> 1st Item in your cart
            </li>
            <li id="LI2">
                <input type="button" class="deleteItem" id="2"> 2nd Item in your cart
            </li>
            <li id="LI3">
                <input type="button" class="deleteItem" id="3"> 3rd Item in your cart
            </li>
        </ul>
    

    Then create the deleteScript.php page to handle the database interaction based on the deleteID you just posted to it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've created an almost full working login system, but my registration page doesn't work
I have a working web application which already has a login and registration system.
I am making a registration system with an e-mail verifier. Your typical use this
I am working on a registration system. To sign-up for an account, a user
I'm working on a big project's registration system. After successful signup, the server generates
I don't have much experience with Utc Dates, but from what I know, they
I have working user registration form. It consist of Zend Form Elements. Now I
I've created a registration system using django-registration. I have extended the RegistrationFormTermsOfService as shown
this is a working example of a plugin that I have written for CRM
I am currently working on a sample class registration system for which I need

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.