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 "
" . $value 2. " | "; } echo "
";} echo "
";? >
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 ...