[phplib] Metadata From: Eric Ries (eric.ries <email protected>)
Date: 07/20/00

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?

Eric

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>