PHP Classes
elePHPant
Icontem

DATA: Access data stored in MySQL tables like arrays

Recommend this page to a friend!
  Info   View files View files (50)   DownloadInstall with Composer Download .zip   Reputation   Support forum (6)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2007-09-04 (9 years ago) RSS 2.0 feedStarStarStar 55%Total: 1,320 All time: 2,824 This week: 958Up
Version License PHP version Categories
data 0.8.0GNU Lesser Genera...5.1PHP 5, Databases
Description Author

DATA stands for Database Access Through Arrays. This package can be used to access data stored in MySQL tables like accessing arrays. It uses SPL to implement several classes and iterators interfaces to access MySQL databases.

Examples:

$DB['test_table'][] = array(
'name' => 'first',
'value' => 'the first row'
);

foreach ($DB['test_table'] as $i => $row) {
...
}

$DB['test_table']['first']['value'] = '1st';

unset($DB['test_table']['first']);

Innovation Award
PHP Programming Innovation award nominee
April 2007
Number 8


Prize: One subscription to the PDF edition of the magazine by PHP Architect
One of the new features introduced with PHP 5 is the iterator interfaces provided by the SPL (Standard PHP Library) extension.

SPL allows applications to traverse objects using regular functions used to traverse array members.

This class provide new SPL iterators that allow applications to easily traverse data from MySQL databases using the same array traversal functions.

Manuel Lemos
Picture of Martin Alterisio
Name: Martin Alterisio <contact>
Classes: 5 packages by
Country: Argentina Argentina
Innovation award
Innovation award
Nominee: 5x

  Files folder image Files  
File Role Description
Files folder imageDATA (34 files, 1 directory)
Accessible without login Plain text file example.php Example An usage example
Accessible without login Plain text file example.sqltypes.php Example An usage example
Accessible without login Plain text file data.lib.php Appl. Main include file of the DATA library.
Accessible without login Plain text file data.mysql5.lib.php Appl. Include to use the DATA library using a MySQL5 database.

 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,320
This week:0
All time:2,824
This week:958Up
 User Ratings  
 
 All time
Utility:81%StarStarStarStarStar
Consistency:87%StarStarStarStarStar
Documentation:-
Examples:58%StarStarStar
Tests:-
Videos:-
Overall:55%StarStarStar
Rank:1602