Example for RedBeanPHP ORM-library

Example for RedBeanPHP (http://redbeanphp.com) ORM-library
//RedBeanPHP einbinden require_once('rb.php'); //Datenbankverbindung einrichten R::setup('mysql:host=localhost;dbname=test','root','password'); /* Einen neuen Datensatz erzeugen - Die Tabelle wird automatisch angelegt! */ $oEntry = R::dispense('mytable'); $oEntry->title = 'Hello World'; //Datensatz speichern $iID = R::store($oEntry); //Laden der gespeicherten Daten $oEntry = R::load('mytable', $iID); //Anzeigen des Titels echo $oEntry->title;

Url: http://sklueh.de/2012/11/redbeanphp-die-einfach-zu-verwendende-orm-bibliothek/

Language: PHP | User: sklueh | Created: Sep 24, 2013 | Tags: redbeanphp orm