ZF Framework DB Class Select Finder Join list Use example _php tutorial

Source: Internet
Author: User
Tags zend framework
This article mainly introduces the ZF Framework DB Class Select Finder Join list Use example, the required friends can refer to the following

The Zend Framework's query join () chain List uses the following example code: ' 127.0.0.1 ', ' username ' = ' root ', ' password ' = ' 111 ', ' dbname ' = ' test ', ' profiler ' = ' true ');//Tell Zend The database and database configuration information that the _db class operates $db = Zend_db::factory (' Pdo_mysql ', $Config); Execute the Encoding statement $Db, query ("Set names UTF8");//-----------------------------------------------$Select = $Db->select ( ), $Select from (' Sanguo ', ' * '), $Select, join (' Dengji ', ' Sanguo.s_dengji = dengji.d_id '); $Select, order (' s _dengji ASC '); $Reslut = $Db, Fetchall ($Select); echo " "; foreach ($Reslut as $key = + $value) {echo" "; foreach ($value as $key 2 = + $value 2) {echo " "; } echo " ";} echo "
" . $value 2. "
";? >

http://www.bkjia.com/PHPjc/741818.html www.bkjia.com true http://www.bkjia.com/PHPjc/741818.html techarticle This article mainly introduces the ZF Framework DB Class Select Finder Join list using the example, the required friends can refer to the following Zend framework of the Finder join () list using the sample code as follows:? php//introduced ...

  • Related Article

    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.