View Single Post
  #1  
Old 09-02-2009, 01:17 AM
Fireballchad Fireballchad is offline
Member
 
Join Date: Aug 2009
Posts: 49
Credits: 8,451
Fireballchad
Default Layout question [Answered]

Hey there I am having a horrible time trying to make my pets be in collums,
PHP Code:
//Loop out code
$i=0;
while (
$i $num) {

$aid=@mysql_result($result,$i,"aid"); //The adoptable's ID
$currentlevel=@mysql_result($result,$i,"currentlevel");
$type=@mysql_result($result,$i,"type");
$name=@mysql_result($result,$i,"name");

$aid1=@mysql_result($result,$i,"aid"); //The adoptable's ID
$currentlevel1=@mysql_result($result,$i,"currentlevel");
$type1=@mysql_result($result,$i,"type");
$name1=@mysql_result($result,$i,"name");
// Our code to determine if we show the table or not...


$article_content $article_content."<center><table><tr>";



// Output the table information...
// Get the current adoptable's image

$image getcurrentimage($aid);

$article_content $article_content."<td><div align='center'><p>".$name."</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></div></td>";


$image1 getcurrentimage($aid1);

$article_content $article_content."<td><div align='center'><p>".$name1."</p><p><a href='myadopts.php?act=manage&id=".$aid1."'><img src='".$image1."' border=0></a></p><p>
<b><a href='myadopts.php?act=manage&id="
.$aid1."'>Manage</a></b></p></div></td>";

$article_content $article_content."</tr></table></center><br>"
it keeps repeating the same adopt on the same line, ive been messing with the $i var and others to try to get it to "jump" one ahead to put it there but then the next line it falls back...

I want
pet-a | pet-b
pet-c | pet-d
I am getting when i mess with it
pet-a | pet-b
pet-b | pet-c

Ive read this but its not working
Reply With Quote