If I have a page that has a link <a href='edit_info.php?id=1001'>1001</a> and on the page edit_info.php I would like to use the id to make a query to a database, say
SELECT * FROM table WHERE id = $_GET['id']
Now I want to fill a bunch of text fields with the results. Must I do this all in the same php
('<?php //place all fields in an echo here ?>)
Or is there a way I can make the query and then in html pull the data from the query?
ex.
<?php //query and results here ?>
<html>
<body>
all my input fields w/ data here
</body>
</html>