View Single Post
  #1  
Old 07-15-2009, 04:57 PM
Celcia Celcia is offline
Member
 
Join Date: Feb 2009
Posts: 5
Credits: 1,407
Celcia
Lightbulb Adoptables in a line

I really love this script and it works great on my site, but there is a question coming from my users and I'm just a beginner in using php. So here's the problem:

All available adoptables on the adopt-site (file is called adopt.php) are shown among one another. It takes a lot of time scrolling through all of them, if there are many adoptables. My user asked me, if it's possible to show the adoptables side by side.
I tried and tested by deleting some of the <p>-tags in the code, but never got a satisfying result.

Does someone know, how to programm the following code segment to show the adoptables "in a line"?

Code:
//If we can adopt the adoptable, show the image and adoption link...

$article_content = $article_content."<p><b><u><a href='adopt.php?id=".$aid."'>".$type.":</a></u></b>
<a href='adopt.php?id=".$aid."'><img src='".$eggimage."' border='0'></a>";

	if($isloggedin == "yes"){
	$article_content = $article_content."<b><a href='adopt.php?id=".$aid."'><img src='templates/icons/add.gif' border=0> Adopt ".$type."</a></b></p>";
	}
	else{
	$article_content = $article_content."<img src='templates/icons/no.gif' border=0> <b>".$guesterror."</b></p>";
	}
Reply With Quote