getxml example.

From: Date: Sun, 18 Mar 2001 14:23:55 +0000
Subject: getxml example.
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-42@lists.php.net to get a copy of this message
Hi again forgot to give an example. but it's anyway straightforward: $db = DB::connect($dsn); $result = $db->query("select * from test"); $xml = $result->getxml(); then $xml = '<?xml version="1.0"?> <result> <row ID="1"> <id>1</id> <title>Testtitle</title> </row> <row ID="2"> <id>2</id> <title>secondtitle</title> </row> </result>' bye chregu -- nam...christian stocker adr...bremgartnerstr. 66, ch-8003 zurich pho...+41 1 451 6021 www...http://phant.ch/chregu mob...+41 76 561 8860 ema...chregu@phant.ch

« previous php.pear.dev (#42) next »