Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

305
Views
How to delete a row from SQL table using button

I am trying to write a function using php and javascript to delete a row from sql database when a button is clicked in that row. This is my table, so once you click the button in a specific row, it would remove said row using the login_id, but I can't really find a way to get this done.

                        '<td>' . $row['login_id'] . '</td>' .
                        '<td>' . $row['first_name'] . '</td>' .
                        '<td>' . $row['last_name'] . '</td>' .
                        '<td>' . $row['email'] . '</td>' .
                        '<td>' . $row['password'] . '</td>' .
                        '<td>' . $row['is_banned'] . '</td>' .                    
                        '<td>  <button type="button" name="deletebutton" onclick="deletefunction()">Delete</button>  </td>' .
                     '<tr>';

this is what the table looks like

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!