Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #11  
Old 10-07-2009, 04:38 PM
Seapyramid Seapyramid is offline
Premium Member
 
Join Date: Feb 2009
Posts: 373
Gender: Female
Credits: 16,078
Seapyramid
Default RE: is this possible?

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
Reply With Quote
  #12  
Old 10-08-2009, 02:01 AM
exdiogene exdiogene is offline
Member
 
Join Date: Oct 2009
Posts: 84
Credits: 8,487
exdiogene
Default RE: is this possible?

thanks sea. You got any ideas on displaying the second image? I cant get the SQL query to work
__________________
Exdiogene have taken over the TommyK CreateBB.com multisites. :cool:
MyBBCodes.com having more than 175 plugins available
Reply With Quote
  #13  
Old 10-08-2009, 06:50 AM
Seapyramid Seapyramid is offline
Premium Member
 
Join Date: Feb 2009
Posts: 373
Gender: Female
Credits: 16,078
Seapyramid
Default RE: is this possible?

I have some ideas but it would take some rewrites. Personally it's not something I would work on. Makes more sense to me to just add a cheat guide if you really want to ruin the surprise of what's in an egg.

Sea
Reply With Quote
  #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: 30,294
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
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 12:20 PM.

Currently Active Users: 908 (0 members and 908 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636