I have links on a PHP page where it lists all records from a database.
The links look like this:
<a href="http://domain.com?id=1">View Records</a> <–ID at the end
What I want to do it to click on that link and option a popup what shows all fields from id 1
What’s the easiest way to show all fields where id=1 on a popup when I click the link?
For example: I have a table like this:
id | name | surname
--------------------
1 | Bob | brown
2 | Ken | blob
and I click on a link that looks like this:
<a href="http://domain.com?id=1">View Records</a>
I need a popup to open and display something like this:
ID - 1
Name - Bob
Surname - Brown
Very rudimentary example of one (of many ways) to popup a window::
popup.php: