一聚教程网:一个值得你收藏的教程网站

热门教程

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

时间:2022-07-02 10:13:36 编辑:袖梨 来源:一聚教程网

使用了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.
*

热门栏目