Date: 07/23/00
- Next message: Kristian Koehntopp: "Re: [phplib] Conditional blocks"
- Previous message: LARIUNGU <email protected>: "[phplib] Errors while attempting to display test pages"
- In reply to: Eric Ries: "[phplib] Metadata"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, 21 Jul 2000, Eric Ries wrote:
}I've been developing apps that use PHPLIB 6.4 on a production webserver,
}and have been reluctant to upgrade, because I don't want to break the code
}that we're running. However, we recently released our code open source
}(http://enzyme.sourceforge.net) and a friend of mine downloaded it and
}tried to get it to work on his install, which uses PHPLIB 7.2.
}
}Now, everything works except the metadata array. Has anything changed about
}its structure? It seems that the following code does not work:
}
}$hash = $db->metadata( $this->table );
} for( $i = 0; $i < $hash["num_fields"]; $i++ )
} {
} print "$i: ".$hash[$i][name]." = ".$hash[$i][type]."<br>";
} }
}
}It seems that $hash[num_fields] is never set to anything.
}
}He is using MySQL (not sure what version). Any suggestions?
The metadata function has changed it's calling interface, cause to
downgrade compatibility with table-class.
metadata($table = "", $full = false)
^^^^^^^^^^^^^
The docs says:
"The data returned by metadata() is suitable for passing it to the Table
class. If you specify the full parameter, an additional column meta is
added, which is indexed by field name and returns the field number of that
name. Also, a column num_fields is added, containing the width of the
table."
Please refer to the source code, what has changed. I have made heavy
changes here for the Query_Sql-class.
--SSilk - Alexander Aulbach - Herbipolis/Frankonia Minoris - (0931)22032
--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>
- Next message: Kristian Koehntopp: "Re: [phplib] Conditional blocks"
- Previous message: LARIUNGU <email protected>: "[phplib] Errors while attempting to display test pages"
- In reply to: Eric Ries: "[phplib] Metadata"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

