Re: modify xml file php script



Hm ..

this maybe an answer but there could be better solutions that my one :-)

<?php

	// ... fetch your id with DOM

	$id_array = explode(".", $id);

	// id[0] == first number of ID
	// id[1] == second number of ID
	// count up second one	
	
	id[1]++;

	// connect id that you have back x.x
	
	$id = implode(".",$id[0].$id[1]);
	
	// write id back to XML (using DOM) ...

?>

dem0o8 wrote:
actually, im more concern about the logic behind of the script. how do
you make the id update in cascading manner. anyway, thanks for the reply

.