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
nitediver
Forum Contributor
Posts: 109 Joined: Tue Feb 24, 2009 9:05 am
Post
by nitediver » Thu Apr 01, 2010 1:24 am
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
Post
by dejvos » Thu Apr 01, 2010 1:44 am
Yes ... use table or set a proper floating in CSS.
nitediver
Forum Contributor
Posts: 109 Joined: Tue Feb 24, 2009 9:05 am
Post
by nitediver » Thu Apr 01, 2010 2:05 am
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]