把从SQL中取出的数据转化成XMl格式

作者:袖梨 2022-07-02
使用了php的PEAR和DB
// +----------------------------------------------------------------------+
// | PHP version 4.0                          |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997, 1998, 1999, 2000, 2001 The PHP Group        |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the PHP license,    |
// | that is bundled with this package in the file LICENSE, and is        |
// | available at through the world-wide-web at              |
// | http://www.php.net/license/2_02.txt.                  |
// | If you did not receive a copy of the PHP license and are unable to     |
// | obtain it through the world-wide-web, please send a note to       |
// | [email protected] so we can mail you a copy immediately.            |
// +----------------------------------------------------------------------+
// | Authors: Christian Stocker                |
// +----------------------------------------------------------------------+
//
// $Id: sql2xml.php,v 1.59 2001/11/13 10:54:02 chregu Exp $
/**
* This class takes a PEAR::DB-Result Object, a sql-query-string or an array
*    and returns a xml-representation of it.
*

相关文章

精彩推荐