Page 1 of 1

Display loop result in horizontal?

Posted: Thu Apr 01, 2010 1:24 am
by nitediver
How to display loop result in horizontal, even using table?

Code: Select all

$query = (query)
while($result){

echo ("
<table>
<tr>

<td>
$result[image]
</td>

<td>
$result[title]
</td>

</tr>
</table>
");
}

I want my result look like this :
[text]
image image image

title title title
[/text]

Re: Display loop result in horizontal?

Posted: Thu Apr 01, 2010 1:44 am
by dejvos
Yes ... use table or set a proper floating in CSS.

Re: Display loop result in horizontal?

Posted: Thu Apr 01, 2010 2:05 am
by nitediver
dejvos wrote:Yes ... use table or set a proper floating in CSS.
No, I mean my current result like this.
[text]
image

title

image

title
[/text]


And this is what I want.
[text]
image image image

title title title
[/text]