Quote:
Originally Posted by Arianna
That's great! :D Could I see the code, if I may?
|
PHP Code:
if ((($i+1)%5)!=0) {
$article_content = $article_content."<td width='20%'><center><p><b>".$name."</b></p><p><a href='myadopts.php?act=manage&id=".$aid."'><img src='".$image."' border=0></a></p><p>
<b><a href='myadopts.php?act=manage&id=".$aid."'>Manage</a></b></p></center></td>";
}
else {
$article_content = $article_content."<td width='20%'><center><p><b>".$name."</b></p><p><a href='myadopts.php?act=manage&id=".$aid."'><img src='".$image."' border=0></a></p><p>
<b><a href='myadopts.php?act=manage&id=".$aid."'>Manage</a></b></p></center></td></tr>";
}
$i++;
}
if ($i%5!=0) {
$article_content = $article_content."</table>";
}
else {
$article_content = $article_content."</tr></table>";
}
Sure there ya go (it is set up for a row of 5). But on another note I CAN not get it work in my adopt/shop page it blows it up every time >.< will post an example here when i take another crack at it if i can get it to work.