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

  • Home
  • SEARCH
  • 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 9148775
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:21:52+00:00 2026-06-17T11:21:52+00:00

I am building a simple PHP checklist application which takes sentences as input which

  • 0

I am building a simple PHP checklist application which takes sentences as input which are stored in MYSQL database then the list is echoed out with remove buttons in front of each list item such as:

  • 1) Do breakfast [remove button]
  • 2) Go to College [remove button]
  • 3) Eat Lunch [remove button]
  • 4) Get back Home [remove button]

Now what would be function that will be executed to remove the current list item being removed.

Here is how I am retrieving the list from database and their corresponding remove buttons:

$sql2 = "SELECT * FROM `info` LIMIT 0, 30 ";
$arr = mysql_query($sql2);
while($data = mysql_fetch_array($arr)){

echo '<strong>'.$data['id'].')</strong>'.' '.$data['text'].'<form action="list.php" method="POST">
<input type="submit" value="Remove" />
</form>'.'<br />';

Please help me how can we approach to a situation like this.
P.S The database has two columns only “ID” and the “List item”

  • 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-06-17T11:21:53+00:00Added an answer on June 17, 2026 at 11:21 am

    You can use < input type='hidden' name='data' value="<?php echo $data[text]; ?>" > in the form

    Finally, you can put this block to remove.

    if(isset($_POST['submit']) {
        $query = "delete from info where text = '$_POST[data]'";
        //run the query here
    } 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building a simple todo list application in PHP.I am displaying the titles of
I'm building a simple availability calendar with PHP and MySQL. I have a table
I am building simple blogging framework using PHP and MySQL, and on the add
I'm currently building a simple web application in PHP that other company's can use
I was building a simple web based calculator which takes equations from a HTML
I'm building a simple web form (or tying to!) which displays a list of
I'm building a simple signup application on my website with user database. I'm using
I'm building a simple PhoneGap application where I get new messages from MYSQL server
I'm building a simple server setup for developping purposes, with Nginx, PHP-FPM, APC, Varnish
Im building a simple chat client which is only supposed to be able to

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.