|
Simple handling of an object |
|
Written by Hidalgo Emmanuel
|
|
Wednesday, 06 August 2008 16:47 |
|
In the following example we show how to update an address e-mail of a user according to his identification number.
|
<?php
//total instanciation include_once( 'phpsimpledb.class.php' ); Global $oBDD; $oBDD = new PHPSIMPLEDB(); //creation and loading of "user" $oUser = $oBDD->getObject( "users" ); $oUser->load( 645 ); //update of "user" $oUser->setData_field( "email", "email@phpsimpledb.com" ); $oUser->save(); ?>
|
|
|
Last Updated on Sunday, 12 July 2009 12:29 |