PHPEveryday.com PHP and Web Development Tutorial
What are you looking for?

SMS : Line Codes Send Simple SMS (Part 2) »

PHP WDDX: Recordset Element


Web Distributed Data Exchange Step By Step tutorial - Part 7: recordset is a complex data type elements. Recordset element is used for tabular data. It is two dimensional data such as comma-separated value (CSV) or records from a database. You may think it is like struct element. yes, you are right. It is like struct element but only for two dimensional. That's why many people prefer to use struct than recordset because struct can contain more complex.

A recordset element contains any number of field elements as its children. it need two attributes: rowCount and fieldnames. The value of rowCount attribute is number of rows of data. The value of the fieldNames is a comma-separated list of the names of fields. Example:

We have table like this:

ID BOOK               AUTHOR
1  PHP Undercover     Wiwit Siswoutomo
2  PHP Webservices    Ilmia

Be transformed into recordset element:

<recordset rowCount="2" fieldNames="ID,BOOK,AUTHOR">
  <field name="ID">
    <number>1</number>
    <number>2</number>
  </field>
  <field name="BOOK">
    <string>PHP Undercover</string>
    <string>PHP Webservices</string>
  </field>
  <field name="AUTHOR">
    <string>Wiwit Siswoutomo</string>
    <string>Ilmia</string>
  </field>
</recordset>


Series this article:
PHP WDDX: Introduction
PHP WDDX: Understanding Anatomy of WDDX
PHP WDDX: Understanding Data Elements
PHP WDDX: Understanding Simple Data Type
PHP WDDX: Using Array Elements
PHP WDDX: Struct Element
PHP WDDX: Recordset Element
PHP WDDX: Simple Serialization Using PHP function
PHP WDDX: Complex Serialization
PHP WDDX: Unserializing Data
PHP WDDX: Creating Web Service Server
PHP WDDX: Creating Web Service Client


Tag: wddx. distributed data, data type, element, recordset Category: PHP Application Post : April 30th 2008 Read: 3,969 Bookmark and Share

blog comments powered by Disqus


Database Tutorial
  • Learn PHP MySQL
  • Learn PHP ADOdb
  • Learn PHP Data Object/PDO
  • Learn PHP XML
  • Learn PHP SimpleXML
Security Tutorial
  • Learn PHP Security
  • Learn HTTP Authentication
  • Learn PHPSecureSite
Framework Tutorial
  • Learn CodeIgniter
  • Learn Joomla
  • Learn Smarty
  • Learn Zend Framework
Template Tutorial
  • Learn Joomla Template
  • Learn WordPress Template
API Tutorial
  • Learn Facebook
JS Framework Tutorial
  • Learn MooTools
  • Learn JQuery
AJAX Tutorial
  • Learn AJAX in 10 Minutes
  • Learn AJAX Client Side
  • Learn AJAX PHP
  • Learn AJAX Remote Server
  • Learn AJAX Repetitive
  • Learn AJAX MySQL
  • Learn AJAX Grid
Web Services Tutorial
  • Learn Web Services NuSOAP
  • Learn Web Services WSDL
  • Learn Web Services WSDL Array
  • Learn Web Services .NET Grid
  • Learn Web Services WDDX
Package Post
  • Joomla Intro
  • Joomla Component
  • Joomla Module
  • Joomla MVC
  • Joomla MVC Backend
  • PostNuke Intro
  • Zend Framework Intro
  • Zend Framework Action
  • Zend Framework Database
  • Zend Framework Registry
  • Zend Framework Config
  • Zend Framework Login
  • Zend Framework Session
  • PHP Array Tips
  • PHP File Tips
  • PHP Email
  • PHP Ms Excel
  • PHP Pattern
  • PHP SMS
  • Flash Database
  • PHP Multitier
  • jQuery Introduction
  • jQuery Selectors
  • Portable Web Server
  • Web Mobile Intro
  • Drupal Installation
  • Drupal Configuration