Beispiel #1
0
 static function showTables()
 {
     if (!self::$tables) {
         self::$tables = array();
         $tables = $db->query("SHOW TABLES;");
         // From my testing, 'FROM DB' is not needed?
         while ($table = mysql_fetch_array($tables, MYSQL_ASSOC)) {
             self::$tables[] = $table;
         }
     }
     return self::$tables;
 }