View Single Post
  #8   Spotlight this post!  
Unread 27-06-2007, 11:17
Uberbots's Avatar
Uberbots Uberbots is offline
Mad Programmer
AKA: Billy Sisson
FRC #1124 (ÜberBots)
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Avon
Posts: 739
Uberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond repute
Re: Dynamic Tables in PHP

PHP Code:
echo "<table>";
foreach(
$show as $i => $d) {
  echo 
"<tr>";
  foreach(
$show[$i] as $j => $jd) {
    echo 
"<td>" $jd "</td>";
  }
  echo 
"</tr>";
}
echo 
"</table>"
with your array, that is the easiest way to do it.
(i love arrays <3)

and sam, it would be more efficient to use a LIMIT statement in your SQL query to limit the rows listed (and you can do pages with that too).
__________________
A few of my favorite numbers:
175 176 177 195 230 558 716 1024 1071 1592 1784 1816
RPI 2012
BREAKAWAY

Last edited by Uberbots : 27-06-2007 at 11:22. Reason: sql