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

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

mg电子:深天马A将在标的资产评估报告取得有权国有监督管理部门备案之后再次召开董事会,对本次重组标的资产的交易价格作出决议,并在重大资产重组报告书中详细披露。

时间:2008-01-12 00:00:00 编辑:简简单单 来源:转载

使用了php的PEAR和DB
<?php
// +----------------------------------------------------------------------+
// | 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.bjxdzj.com/mgdz/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       |
// | license@php.net so we can mail you a copy immediately.            |
// +----------------------------------------------------------------------+
// | Authors: Christian Stocker <chregu@phant.ch>               |
// +----------------------------------------------------------------------+
//
// $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.
*

文章评论

热门栏目

合作: 葡京娱乐 mg电子 mg电子