Jump to content

PHP MySQL query output table with update and delete related link


Recommended Posts

Hi,

 

I would like to know how to perform a query and output it as a table in my page.

 

But I would like to have a delete or update option wich is associated to the query. Similar to the table in phpadmin. You have a pencil for the edit or red cross to delete it.

 

Any idea where I can find some info about it ?

 

thank you,

 

gasma1975,

You do a Query to list all the Records.  When you do that, you include a Link to the Record ID.  On the page you do a $_GET to get the record ID and then you load it into a FORM.  From there you can resubmit the FORM with your changes and do a UPDATE to that record ID.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.