Joomla database Operation sample Code, Joomla sample code
This paper describes the method of Joomla database operation. Share to everyone for your reference, as follows:
1, jTable
$row =& jtable::getinstance (' comment ', ' Table '), $row->load ($id), $row->bind (Jrequest::get (' post ')) $row- >store ()
2, Jmodel
3, Jfactory
$db =& jfactory::getdbo () $query = "SELECT count (*) from #__reviews"; $db->setquery ($query); $total = $db->load Result (); $query = "SELECT * from #__reviews"; $db->setquery ($query, $limitstart, $limit); $rows = $db Loadobjectlist ();
It is hoped that this article will be helpful to everyone based on Joomla's PHP program design.
Articles you may be interested in:
- Joomla JCE Editor to solve the problem of uploading Chinese name file failed
- Application of XML in Joomla forms share
- The original ecological application code of Ajax in Joomla
- CKEditor and Syntaxhighlight to create Joomla code highlighting
- How to use the form verification function built into Joomla
- Use configuration.php to store simple data under Joomla
- Learn about Joomla's PHP Web Management system from abroad
http://www.bkjia.com/PHPjc/1089198.html www.bkjia.com true http://www.bkjia.com/PHPjc/1089198.html techarticle Joomla Database Operation sample Code, Joomla sample Code This article describes the method of Joomla database operation. Share to everyone for your reference, as follows: 1, jTable $row = $row-...