2006-07-24 01:08:06 +04:00
|
|
|
<?php
|
|
|
|
$table = $session->getTable("User");
|
|
|
|
|
|
|
|
|
2006-08-17 13:42:18 +04:00
|
|
|
$user = $table->find(2);
|
2006-07-24 01:08:06 +04:00
|
|
|
|
2006-08-17 13:42:18 +04:00
|
|
|
if($user !== false) {
|
|
|
|
$user->name = "Jack Daniels";
|
|
|
|
|
|
|
|
$user->save();
|
|
|
|
}
|
2006-07-24 01:08:06 +04:00
|
|
|
?>
|