The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I am developing my first add-on for vb4 and could use some serious (and basic) php help, if you would be so kind.
I have a simple query looking for some info in the table cms_node: Code:
$cms_sitefeature = vB::$db->query_read("SELECT * FROM " . TABLE_PREFIX . "cms_node WHERE parentnode = 5 LIMIT 4"); Since the results are limited to 4, each column has to be stored in an array I suppose. But then how do I get this to display foreach row in the template? is it done using a foreach in the php code or with a <vb:each in the template? I feel like this is asking for some basics and I am not asking for someone to do it, just need to be steered in the right direction. Thanks! |
#2
|
||||
|
||||
![]()
im using what you might consider
for each in vb terms in this modification (https://vborg.vbsupport.ru/showthread.php?t=232224) But i use PHP Code:
|
#3
|
|||
|
|||
![]()
Thanks much! I ended up going with the while {} approach, seemed much simpler.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|