source: Dev/branches/jQueryUI/pages_old/database_example.php @ 246

Last change on this file since 246 was 246, checked in by hendrikvanantwerpen, 13 years ago

Created first page mainmenu in new system.
Moved old pages out of project root.
Fixed RDFAPI.php case for people with proper OS'es.

File size: 455 bytes
Line 
1<?php
2    require 'classes/master.php';
3
4    $db = new DatabaseInterface();
5    $result = $db->get("user", array("name" => "jkraaijeveld"));
6    print_r($result);
7   
8    // Create new application and save it in database
9    $newApp = new Application(null, "Titel", "Beschrijving", "Stijl");
10    $db->set(newApp);
11   
12    //Retrieve all Questions
13    $results = $db->get("question", array());
14   
15    //Batchsave all results
16    $db->set($results);
17?>
Note: See TracBrowser for help on using the repository browser.