Brother, please help me to display the content associated with the table in php.
ōóǒò
ōóǒò 2021-05-08 15:06:27
0
0
591

{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

ōóǒò
ōóǒò

reply all(1)
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!