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 7013901
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:27:03+00:00 2026-05-27T22:27:03+00:00

I am writing a sort of custom Administrative UI. I have implemented the php

  • 0

I am writing a sort of custom Administrative UI.

I have implemented the php code that inserts and reads records from the DB table.

The records are visualized in a table in the UI in the below pattern:

test title

Added: 2011-12-29 17:34:35

test2

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

test title

Added: 2011-12-29 17:34:35 tests

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

test title2
Added: 2011-12-29 17:34:35 test22

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I have the following structure for my database table:

TABLE news (
guid ,
lang ,
title ,
content ,
date,
PRIMARY KEY (guid, lang)
)

guid is generated with php com_create_guid () function.

How can I implement buttons Edit and Delete beside each item?

Thanks a lot!

  • 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-27T22:27:04+00:00Added an answer on May 27, 2026 at 10:27 pm
    • you can make a form with hidden inputs that contain record id and buttons with different names. For each record:
    <form action="action.php" method="POST">
       <input type="hidden" name="record_id" value="12">
       <input type="submit" value="Edit" name="doedit">
       <input type="submit" value="Delete" name="dodelete">
    </form>
    

    In action.php:

    if (isset($_POST['doedit'])){do smth.}
    if (isset($_POST['dodelete'])){do smth.}
    
    • you can make links instead giving each different url containing action and record id as GET parameters.
      Suppose you have a file action.php. For record number 12 the “edit” link will go to “action.php?do=edit&record=12”, the “delete” link will go to “action.php?do=delete&record=12”.
      In action.php:

      $do=$_GET[‘do’]; //you should add some validation of $_GET
      $rec=$_GET[‘record’]; if ($do==’edit’){do smth.} if
      ($do==’delete’){do smth.}

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

Sidebar

Related Questions

Scala programmer should have known that this sort of writing : class Person{ var
Writing htaccess that allows me to remove index.php from the URL can confuse search
I'm writing a custom web app (an administrative utility) that queries a SQL Server
I am writing some PHP. I have several classes that do not declare any
I am writing an application that can potentially have hundreds of custom user controls
I am writing a sort of image processing program that allows the user to
So I am writing a Java code to represent a heap sort and to
Writing documentation in html requires some code examples. What to do with characters that
I'm writing some custom helpers the current one involves a sort of datagrid control
Today I was writing some C code to sort an array of structs using

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.