tags:

views:

68

answers:

2

Hi ,

I need some help ,

All I need to do is change "HERE" to a the value of $date

$line1 = $sxe->addChild("date","HERE");

How can I add the value of $date into the area were "HERE" is ?

Please help

+3  A: 
$sxe->addChild("date", $date);
Ben Marini
just changed it too $sxe->addChild('date', $date);and it works :) Thanks
Oliver Bayes-Shelton
A: 

EDIT: Actually the following wont work unless the date node exists. Listen to the others... We see how often i actually modify structure with SimpleXml ;-)

$sxe->date = $date;

prodigitalson