[SUGGESTION] To change core DB class or at lease add new one. - Joomla! Forum - community, help and support
how style of work sql queries. posible switch class use joomla. more oo , neat.
http://framework.zend.com/manual/en/zend.db.html
the db class joomla use old style. 1 should create queries typing. olready standart evry db layers have such methods select(), update(); delete(); etc,..
i found select building methods in 1.5 in jquery class. methods not enough. 1 need update , delete. nise have save() row etc,..
is'nt wounderful
http://framework.zend.com/manual/en/zend.db.html
the db class joomla use old style. 1 should create queries typing. olready standart evry db layers have such methods select(), update(); delete(); etc,..
i found select building methods in 1.5 in jquery class. methods not enough. 1 need update , delete. nise have save() row etc,..
is'nt wounderful
code: select all
<?php
//
// update round_table
// set favorite_color = "yellow"
// id = 12
//
class roundtable extends zend_db_table {}
$table = new roundtable();
$db = $table->getadapter();
$set = array(
'favorite_color' => 'yellow',
)
$rows_affected = $table->update($set, 'id = 12');
?>
perhaps jsimplerecordset class deal this?
Comments
Post a Comment