";
// while there is data...
while($row = mysql_fetch_object($res)) {
// begin new row if appropriate.
// NOTE: Of necessity, I separate this from the
// end-of-row test; otherwise, a query returning
// an exact multiple of the table width would
// result in a table with an em
i = 1 to max - col
echo "td nbsp td"
next
echo "/tr"
end if
echo "/table"
-Original Message-
From: David Redmond [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 19, 2002 3:05 PM
To: 'SpamSucks86'; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sub
{
echo " \n";
$counterCol = 0;
$counterRow = 0;
}
}
echo "\n";
?>
-Original Message-
From: SpamSucks86 [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 19 February 2002 12:35 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [PHP] RE: [PHP-DB] I cant get the
I had this same problem. It's very aggravating. Jason G's solution won't
work, because $oRow will always be true as long as there is more
results, NOT if there are less than 3 results left.
Why don't you true something like this
0) {
//echo your row with 3 cells
$numevenrows = $
I had this same problem. It's very aggravating. Jason G's solution won't
work, because $oRow will always be true as long as there is more
results, NOT if there are less than 3 results left.
Why don't you true something like this
0) {
//echo your row with 3 cells
$numevenrows = $
$nWidth = 3;
$oRow = TRUE;
while($oRow)
{
//Write tr here
for($i=0; $i<$nWidth; $i++)
{
$oRow = mysql_fetch_object($dbResult);
//Write here
}
//write /tr here
}
At 12:06 PM 2/18/2002 +, you wrote:
>Hi all,
>
>I w
6 matches
Mail list logo