I am trying to display 3 across 12 total, but as as you can probably see from my script, it is not working that way. I am getting 3 acroos and 12 total of the first entry in the DB, then 12 of the next...
How do I get it move to teh next entry each time?PHP Code:else if(!isset($_POST['submit'])) //looking at root
// {
$numentries=12;
$start=0;
print "<table align='center' border='0' width='90%'>";
print "<tr><td colspan='3' align='center'><b>Identification Guide</b><br><br></td></tr>";
$ptrnselect="Select * FROM PIECES order by numa LIMIT $start,$numentries";
$ptrnquery=mysql_query($ptrnselect) or die("diesroot");
while($p=mysql_fetch_array($ptrnquery))
{
$j=0;
$y=4;
while ($j < $y) {
++$j;
print "<tr>";
$i=0;
$x=3;
while ($i < $x) {
print "<td align='center' width='33%'>";
print "<a href='index.php?EntryID=$p[EntryID]'><img src='$p[img1]'></a><br>";
print "<font color='#000000'>$p[numa]-$p[numb]-$p[numc]</font><br>";
print "<font color='#000000'>$p[shorttext]</font>";
++$i;
}
print "</td>";
}
print "</tr>";
}



Reply With Quote



Bookmarks