Hi Guido - thanks for the reply.
Here's the extended piece of the PHP code:
PHP Code:
//find parent node for each product
case 'progressive_jackpots';
//initialise xml parser
$dom = new DOMDocument();
$domNode = $xmlReader->expand();
$element = $dom->appendChild($domNode);
$domString = utf8_encode($dom->saveXML($element));
$product = new SimpleXMLElement($domString);
//import data
$game = $progressive_jackpots->jackpot->game;
$amount = $progressive_jackpots->jackpot->amount;
//insert query into database
if ($query = mysql_query("REPLACE INTO progressives
(casino, game, amount)
VALUES ('Go Casino', '$game', '$amount')"))
{
}
else
{
echo "Problem with <strong>".$name."</strong>: ". mysql_error()."<br />";
}
}
}
Bookmarks