Views rows style模板重写代码

前端之家收集整理的这篇文章主要介绍了Views rows style模板重写代码前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

以下是代码例子。

代码如下:
PHP
$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 ?>



原文链接:https://www.f2er.com/php/27978.html

猜你在找的PHP相关文章