find the codes for editing .php files
???
Honestly, I don't understand the question. I can't think of any real reason to store an entire HTML page in a db. What I would do is use something like
<a href=template.php?link=1&type=1
Then, set up a template.php page and use the vars $link and $type (add as needed) to set up the page.
A simple
switch..case...end
statement can determine what to display.
Please post an example if this doesn't help.