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 Link to comment https://forums.phpfreaks.com/topic/8649-best-way-to-offer-specific-item-info/ 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. Link to comment https://forums.phpfreaks.com/topic/8649-best-way-to-offer-specific-item-info/#findComment-31762 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. Link to comment https://forums.phpfreaks.com/topic/8649-best-way-to-offer-specific-item-info/#findComment-31764 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.