Display loop result in horizontal?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
nitediver
Forum Contributor
Posts: 109
Joined: Tue Feb 24, 2009 9:05 am

Display loop result in horizontal?

Post 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]
dejvos
Forum Contributor
Posts: 122
Joined: Tue Mar 10, 2009 8:40 am

Re: Display loop result in horizontal?

Post by dejvos »

Yes ... use table or set a proper floating in CSS.
nitediver
Forum Contributor
Posts: 109
Joined: Tue Feb 24, 2009 9:05 am

Re: Display loop result in horizontal?

Post 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]
Post Reply