Jump to content

Need a little help with tables


slipondajimmy

Recommended Posts

Hey everyone. Im having a issue.

 

I need figure out how to get this code to display what I need. It will be displaying avatars, and I only want it to show 4 per row, then start a new row. What is it that I need to do? It ill currently display the avatars, but once it get more then 4 it just all bunches up instead of starting another row.

 

Any ideas? And im sure im not making any sense but maybe someone can figure it out.

 

echo "<tr><td rowspan='4' colspan='4' align='center'>";

        echo "<img src=\"".$xoopsConfig['xoops_url']."/images/avatar/".$zavatar."\" name=\"avatar\" id=\"avatar\"><br />";

        echo "<a href='/members/userinfo.php?uid=$zuid'>".ucfirst($zuname)."</a>";

        echo "</td></tr>";

Link to comment
https://forums.phpfreaks.com/topic/43316-need-a-little-help-with-tables/
Share on other sites

for($i=0;$i<3;$i++)
{
echo "<tr><td rowspan='4' colspan='4' align='center'>";

        echo "<img src=\"".$xoopsConfig['xoops_url']."/images/avatar/".$zavatar."\" name=\"avatar\" id=\"avatar\"><br />";

        echo "<a href='/members/userinfo.php?uid=$zuid'>".ucfirst($zuname)."</a>";

        echo "</td></tr>";
}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.