Hello.
I'm pulling information from a database and inserting it into a table row. I
want to be able to control the number of results displayed before a new row
is formed. In another words, I want three results displayed before a new
table row is created. I'll post my code, if it helps:
while($myRow = mysql_fetch_array($result))
{
$book_img = $myRow["book_img"];
$book_id = $myRow["book_id"];
$book_title = $myRow["book_title"];
$book_author = $myRow["book_author"];
$book_price = $myRow["book_price"];
$book_desc = $myRow["book_desc"];
//right now, it simply adds a column to the table. I want 3 columns per row
before a new row is started...
echo ("<td><br><p align=center>");
echo ("$book_img <br>");
echo ("<b> $book_title </b><br>");
echo ("<u> $book_author </u>" . " <font color=\"#990000\"><b>
$book_price</b></font><br>");
echo ("<i> $book_desc</i><br>");
echo ("</p></td>\n\n");
}