Oh man...
No way that is going to work.
eval execs 1 line of code, not a file with line after line.
Unfortunately, your strategy if flawed here.
I'm not sure why you're going about things they way you are with wanting php/html pages in the db. But, what I would recomend is that you instead, create the file on the filesystem and store the link in the database, and then link to the page.
If you are trying to get pieces of code to insert themselves, you can try fast templates or any other such template engine, or do what I did, and make your own.
Either way, what you have right now isn't gonna fly.