PHP Classes

File: XML_TO_DB.php

Recommend this page to a friend!
  Classes of Olavo Alexandrino   ADODB XML   XML_TO_DB.php   Download  
File: XML_TO_DB.php
Role: Example script
Content type: text/plain
Description: This example saves the content of file XML in the table "users" of the Data base.
Class: ADODB XML
Import and export data in databases to XML files
Author: By
Last change:
Date: 19 years ago
Size: 361 bytes
 

Contents

Class file image Download
<?php require_once('connection.php'); ?>
<?php
require_once('class.ADODB_XML.php'); ?>
<?
/*
This example saves the content of file XML in the table "users" of the Data base.
Tags of the XML corresponds to the fields of the table.
*/
$adodbXML = new ADODB_XML("1.0", "ISO-8859-1");
$adodbXML->InsertIntoDB(&$objConnection, "usersxml.xml", "user");
?>