c.wrinn gmail.com wrote:
> while ($row = mysql_fetch_row($result))
> {
> for ($i=0; $i<mysql_num_fields($result); $i++)
> echo $row[$i] . " ";
>
> echo "\n";
> }
I'm not sure if this will actually output what you want. I
tend to use
this code for a similar operation:
while($row = mysql_fetch_array($result, MYSQL_NUM))
{
list($type, $your, $column, $names, $here) = $row;
echo "Enter your $variables here or
whatever";
}
X-Google-Language: ENGLISH,ASCII-7-bit
Received: by 10.11.53.63 with SMTP id b63mr87178cwa;
Sat, 20 May 2006 10:26:20 -0700 (PDT)
X-Google-Token: MRdKiQwAAACiYI-d4QyHwuGGWMVydu2v
Received: from 129.11.102.132 by
j55g2000cwa.googlegroups.com with HTTP;
Sat, 20 May 2006 17:26:20 +0000 (UTC)
From: "Matt" <guitarromantic gmail.com>
To: "PHP & MySQL" <phpmysql googlegroups.com>
Subject: Re: New to PHP and MySQL... a few problems with my
first script.
Date: Sat, 20 May 2006 10:26:20 -0700
Message-ID: <1148145980.046474.126520 j55g2000cwa.googlegroups.com>
In-Reply-To: <1147746688.671530.143290 j33g2000cwa.googlegroups.com>
References: <1147746688.671530.143290 j33g2000cwa.googlegroups.com>
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1;
en-GB; rv:1.8.0.3) Gecko/20060426
Firefox/1.5.0.3,gzip(gfe),gzip(gfe)
Mime-Version: 1.0
Content-Type: text/plain
c.wrinn gmail.com wrote:
> while ($row = mysql_fetch_row($result))
> {
> for ($i=0; $i<mysql_num_fields($result); $i++)
> echo $row[$i] . " ";
>
> echo "\n";
> }
I'm not sure if this will actually output what you want. I
tend to use
this code for a similar operation:
while($row = mysql_fetch_array($result, MYSQL_NUM))
{
list($type, $your, $column, $names, $here) = $row;
echo "Enter your $variables here or
whatever";
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "PHP & MySQL" group.
To post to this group, send email to phpmysql googlegroups.com
To unsubscribe from this group, send email to
phpmysql-unsubscribe googlegroups.com
For more options, visit this group at http://groups
.google.com/group/phpmysql
-~----------~----~----~----~------~----~------~--~---
|