kruzayn Posted April 28, 2006 Share Posted April 28, 2006 I have a PDF right now that is 400 pages long. It contains advanced item information. On an ecommerce website i want to link to the product info of only the product that is being looked at and not all 400 pages. I am willing to do the work to make it easier, but creating 400 individual html files isnt what i want to do. What is the best way to do this with PHP/MySQL. Thanks for any feedback, i really appretiate it.Kruzayn Quote Link to comment Share on other sites More sharing options...
ober Posted April 28, 2006 Share Posted April 28, 2006 There's not going to be an easy way to do this unless you can programatically grab the information out of the PDF and stuff it into a database. You're still going to have to go through the content and do formatting and so on. My suggestion is to create a table for "topics" or "products" or whatever you want to call them. Put the content for each item in a seperate record and then create one page that pulls the correct information out of the database. If the layout for each item is similar, you can leave most of the formatting to the one PHP page and seperate your product content into various fields (item number, serial number, description, etc) and format it as you pull it out of the database.I don't know what you're looking for as far as a specific answer, so I hope that helps. Quote Link to comment Share on other sites More sharing options...
Barand Posted April 28, 2006 Share Posted April 28, 2006 I would recommend that, when user selects an item, you create the PDF page for that item "on-the-fly" using something like FPDFEDIT : As Ober, who types faster than me, said. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.