Views rows style template rewrite code_PHP tutorial

WBOY
Release: 2016-07-21 15:29:47
Original
1081 people have browsed it

以下是代码例子。

复制代码 代码如下:

$nid = $row->nid;
$country = db_result(db_query('SELECT name FROM {term_data} term_data JOIN {term_node} term_node ON term_node.tid = term_data.tid WHERE term_data.vid = %d AND term_node.nid = %d', 1, $nid));
$investment = db_result(db_query('SELECT name FROM {term_data} term_data JOIN {term_node} term_node ON term_node.tid = term_data.tid WHERE term_data.vid = %d AND term_node.nid = %d', 2, $nid));
?>

content ?>

content ?>




content ?>


content ?>
content ?>



www.bkjia.comtruehttp://www.bkjia.com/PHPjc/323336.htmlTechArticle以下是代码例子。 复制代码 代码如下: ?php $nid = $row-nid; $country = db_result(db_query('SELECT name FROM {term_data} term_data JOIN {term_node} term_node ON term_n...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!