Joomla database Operation sample Code, Joomla sample Code _php tutorial

Source: Internet
Author: User

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-...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.