MaioCV Posted June 20, 2011 Share Posted June 20, 2011 Hi, I'm quite an experienced programmer, but haven't come across this situation previously... I have an on-line shop. shop.php contains generated links to the shop items, e.g. shop.php?item=123456 rewritten as 123456/bike1.html, defining each item. All items are contained within an XML structured file, with the relevant data for image, title, description etc... My issue is how to create a generic piece of code to generate the output webpage when the product item link is clicked and render to the user? Thanks for any help, Mark. Quote Link to comment https://forums.phpfreaks.com/topic/239889-generating-a-webpage-from-xml-file-for-online-shop-item/ Share on other sites More sharing options...
AbraCadaver Posted June 20, 2011 Share Posted June 20, 2011 If you have simple needs then I would use this: http://us.php.net/manual/en/simplexml.examples-basic.php Quote Link to comment https://forums.phpfreaks.com/topic/239889-generating-a-webpage-from-xml-file-for-online-shop-item/#findComment-1232320 Share on other sites More sharing options...
MaioCV Posted June 20, 2011 Author Share Posted June 20, 2011 Thanks for the reply. I have no problems with retrieving data from the XML file, it's the process of writing the webpage, with the retrieved XML data, and rendering the new webpage to the users browser, that's where I'm having trouble Thanks again. Quote Link to comment https://forums.phpfreaks.com/topic/239889-generating-a-webpage-from-xml-file-for-online-shop-item/#findComment-1232340 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.