On Tue, Mar 13, 2001 at 03:07:45PM -0500, Mike wrote:
> <?php
> require("Connection.php");
> $query="Show Columns from Inventory";
> $result= mysql_query($query);
> while ($row = mysql_fetch_row($result));
> {
> for ($i =1;$i<mysql_num_fields($result);$i++)
> {echo $row[$i];
> }}
> ?>
2 problems.
1. Delete the ';' after the while loop. With that there the for loop will
never run.
2. If you want to print everything, you will need to change $i =1 to
$i =0 in the for loops.
--
Jason Stechschulte
[EMAIL PROTECTED]
--
Anyway, my money is still on use strict vars . . .
-- Larry Wall in <[EMAIL PROTECTED]>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]