search

Home  >  Q&A  >  body text

Brother, please help me to display the content associated with the table in php.

{foreach $users as $u } <td class="center">{$u.role.id} {switch name='$u.role'} {case value='1'}user{ /case} {/switch} {switch name='$u.role'} {case value='2'}admin{/case} {/switch} </td>{/foreach}

The administrators and users in this place create a table role and associate it with the users table. How should I write it here to directly use the administrator and user name on the role table associated with the users table?1.png2.png

ōóǒòōóǒò1356 days ago751

reply all(0)I'll reply

No reply
  • Cancelreply