Just a knowledge question which I would like to ask:
For example, I have a table retrieved from sqlite3 database:
ID Name Address Email Actions
1 Mary Canada Mary@yahoo.com Modify
2 John New York John@gmail.com Modify
Upon clicking the actions (Modify) on the specific row like Mary, it will prompt to next webpage to modify the records. So how can I retrieve the table value and bring it to the next web page?
FYI, i’m using sqlite3 and php currently. Please advise if there is any methods to do it.
Thanks
If I correctly understand your question:
As you are looping through your result set and creating your HTML, you would add your row ID to the modify link, something like:
the $id would be the value from your database, so it would change for each row.
On your “page-to-modify.php” you would then retrieve the $id, for example:
Then you can select the data again for this ID and populate your edit page.
Hope this helps.