Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Okay I did your thing and it only printed out 22 entries and made them all a td which means they printed sideways. What I have is like 50 entries and want two rows of 25

Do I set $i to anything?

Basically the html looks like this

<table>
<tr>
<td>

all the query coding etc goes here with the for statement blaH BLAH and the if statement and list ()
etc etc etc which prints out


<table>
<tr>
<td>
$results
</td>
</tr>
</table

then all loop closes etc

}

Further down then the table is closed out

</td>
</tr>
</table>

I used something like this with the code Astaran posted above so basically if what you are saying is correct that code I posted in that if statement would give me 2 rows right?

if ($i < ($rows / 2)) {

echo <<< UNSPRINT

</td>
<td align="center" class="lighttable">

UNSPRINT;

}
else {

echo <<< UNSPRINT

</td>
<td align="center" class="lighttable">

UNSPRINT;

}

The page is 100% XHTML valid so its not bad html

Sponsored Links
Entire Thread
Subject Posted By Posted
Breaking Results up into two rows omegatron 01/19/2004 7:53 PM
Re: Breaking Results up into two rows Astaran 01/19/2004 9:18 PM
Re: Breaking Results up into two rows omegatron 01/19/2004 11:10 PM
Re: Breaking Results up into two rows Astaran 01/20/2004 2:04 AM
Re: Breaking Results up into two rows omegatron 01/20/2004 4:08 AM
Re: Breaking Results up into two rows JoshPet 01/20/2004 5:56 AM
Re: Breaking Results up into two rows omegatron 01/20/2004 6:03 AM
Re: Breaking Results up into two rows omegatron 01/20/2004 6:39 AM
Re: Breaking Results up into two rows Astaran 01/20/2004 8:32 AM
Re: Breaking Results up into two rows omegatron 01/20/2004 3:49 PM
Re: Breaking Results up into two rows Astaran 01/20/2004 4:55 PM
Re: Breaking Results up into two rows omegatron 01/20/2004 5:11 PM
Re: Breaking Results up into two rows Astaran 01/20/2004 6:29 PM
Re: Breaking Results up into two rows omegatron 01/20/2004 7:32 PM
Re: Breaking Results up into two rows Astaran 01/20/2004 7:58 PM
Re: Breaking Results up into two rows omegatron 01/20/2004 8:15 PM
Re: Breaking Results up into two rows Astaran 01/20/2004 8:32 PM
Re: Breaking Results up into two rows omegatron 01/20/2004 9:20 PM
Re: Breaking Results up into two rows Astaran 01/20/2004 9:43 PM
Re: Breaking Results up into two rows omegatron 01/20/2004 10:21 PM
Re: Breaking Results up into two rows Astaran 01/20/2004 11:42 PM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
• Shock Hosting
• Stable Host
• bluehost
• InterServer
Visit us on Facebook
Member Spotlight
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,583
Posts293,957
Members13,826
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 3273
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 20
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
isaac 2
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20261026)