Skip to content
This repository
Newer
Older
100644 22 lines (18 sloc) 0.955 kb
c2cea5a3 »
2010-04-28 Readme
1 NotORM - http://www.notorm.com/
2
c88bb195 »
2011-06-23 Comment
3 NotORM is a PHP library for simple working with data in the database. The most interesting feature is a very easy work with table relationships. The overall performance is also very important and NotORM can actually run faster than a native driver.
c2cea5a3 »
2010-04-28 Readme
4
5 Requirements:
6 PHP 5.1+
14ff197c »
2010-05-20 Oracle support
7 any database supported by PDO (tested with MySQL, SQLite, PostgreSQL, MS SQL, Oracle)
c2cea5a3 »
2010-04-28 Readme
8
9 Usage:
10 <?php
11 include "NotORM.php";
14ff197c »
2010-05-20 Oracle support
12 $connection = new PDO("mysql:dbname=software");
13 $software = new NotORM($connection);
c2cea5a3 »
2010-04-28 Readme
14
f4fc1a79 » unknown
2010-04-28 Comments
15 foreach ($software->application()->order("title") as $application) { // get all applications ordered by title
16 echo "$application[title]\n"; // print application title
17 echo $application->author["name"] . "\n"; // print name of the application author
c2cea5a3 »
2010-04-28 Readme
18 foreach ($application->application_tag() as $application_tag) { // get all tags of $application
19 echo $application_tag->tag["name"] . "\n"; // print the tag name
20 }
21 }
22 ?>
Something went wrong with that request. Please try again.