|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
noplay Smarty n00b
Joined: 04 Jul 2003 Posts: 1
|
Posted: Fri Jul 04, 2003 11:10 am Post subject: Access to two mysql tables |
|
|
I have a mysql table user. In this table i have
|Name|group|
For exemple |Noplay|1|
and i have a table group
|id|name|
I will make a table with all my user and group name, but i don't know how i can display the group...
I use PEAR DB and my select return an assosiative array
That's my template code
Code: |
{section name=user loop=$list_user}
<tr>
<td>
{$list_user[user].name}
</td>
<td>
{$list_user[user].group}
</td>
{/section}
</tr>
|
But that display only the id |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|