Skip to content
Advertisement

How to add a link to edit and delete each row in a table formulated using php

I have written php code that outputs a php table and for each row, I want to be able to add an extra column to an edit and delete link (CRUD functionality). Currently I have been able to add the extra column but I am unsure on how to actually add the edit and update links in each row. My table currently looks like this. [1]: https://i.stack.imgur.com/nwFzQ.png

The table is made using html code and the data is received using php code that is linked to another file. The following is the html code,

The following is the php code (data.php):

Advertisement

Answer

You need some ID from database example: $data[“id”]

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement