At 09:33 AM 8/29/2003, you wrote:
> You can do:
> while ($row = $result->fetchRow(DB_FETCHMODE_ASSOC))
> {
> extract ($row);
> echo $feild_A . ' ';
>
> $row = $result->fetchRow(DB_FETCHMODE_ASSOC);
> extract ($row);
> echo $feild_A . '';
> }
cl
On Friday, Aug 29, 2003, at 02:14 US/Eastern, jsWalter wrote:
But now I've been thrown a wrench in the form of double row display.
my client wants...
a b
c d
e f
...
.. I need to create...
row_1/feild_A
row_1/feild_B
row_2/feild_A
row_2/fe
You can do:
while ($row = $result->fetchRow(DB_FETCHMODE_ASSOC))
{
extract ($row);
echo $feild_A . ' ';
$row = $result->fetchRow(DB_FETCHMODE_ASSOC);
extract ($row);
echo $feild_A . '';
}
Tiberiu
- Original Message -
From: "jsWalt
get the last records if it happens to be
an od number off records;
You'll have to do your own coding around this logic.
Good luck
Jack
-Original Message-
From: jsWalter [mailto:[EMAIL PROTECTED]
Sent: Friday, August 29, 2003 9:46 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] an
> "Boaz Yahav" <[EMAIL PROTECTED]> wrote in message
> I'm not sure i understand the problem.
> a,c,e come from one query result and b,d,f from another?
No, they all come from the same table, but the same field name but from
different rows of the database.
> If it's all from the same query why n
I'm not sure i understand the problem.
Do a,c,e come from one query result and b,d,f from another?
If it's all from the same query why not do :
$result=mysql_query(".
While($row = mysql_fetch_object($result)) {
Echo"$row->feild_A$row->feild_B";
}
Sincerely
berber
Visit http://www.we