You need to move the html around in fetchprices.php to be displayed after the product title has been extracted from the xml. Then you can just put $dvdTitle in the title tags and it should work.
You need to find something like this
switch ($name) {
case "TITLE":
and put all the header info straight after that, from <html> all the way through to <body> and the basic page template. I'd move it into a seperate file and put it in fetchprices with a PHP include.
It will slow the page down though - nothing will get written to the page until the xml file has beeen parsed.
Last edited by lowndsy; 14-02-06 at 05:54 PM..
|