View Single Post
  #14  
Old 10-08-2009, 07:41 AM
Bloodrun's Avatar
Bloodrun Bloodrun is offline
I am, who I am.
 
Join Date: Apr 2009
Posts: 532
Gender: Male
Credits: 44,196
Bloodrun
Send a message via Yahoo to Bloodrun
Default RE: is this possible?

Quote:
Originally Posted by Seapyramid
Quote:
Originally Posted by tommyk1210
I see what you mean bloodrun, but this is what the people i have asked are looking for, they are members of one of my sites. I asked them what they thought of the new site and 1 was this and the other thing was wanting the pets to be siplayed in a table instead of down the page :)
This is coding I am using to display eggs in a row...

PHP Code:
                  $article_content $article_content "<table align='center' >
  <tr>  <td align='center'>"
;
  

           
// Begin the output of all the adoptables to the user...          
          
$query "SELECT * FROM " $prefix "adoptables";
          
$result mysql_query($query);
          
$num mysql_numrows($result);
 
      
      
//Loop out code
      
$i 0;
      while (
$i $num) {
          
//The adoptable's ID
          
$aid = @mysql_result($result$i"id");
          
$eggimage = @mysql_result($result$i"eggimage");
          
              
$article_content "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" $article_content "
<a href='adopt.php?id=" 
$aid "'><img src='" $eggimage "' border='0'></a>&nbsp;&nbsp;";
              
         
          
$i++;
      }
    
$article_content $article_content " </td></tr></table></div>";  
      
// End the looping out of all adoptables... 
Sea
Oh, I thought he was asking about how to get them to be side by side. Sorry about that.
Reply With Quote