i want to check a database and get all table names first and then show some kind of report from data inside each table
        $query = $db3->query("SELECT `table_name` from INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'db3' ") or die("$db3->error");
        while ( $table = $query->fetch_assoc() )
        {
            //echo $table['table_name'].'<br />';
             $t = trim($table['table_name']);
            //i get all table names now i want to select all columns from that table name :
            $select = $db3->query("SELECT * FROM ".$t." ") or die($db3->error);
            $row = $select->fetch_assoc();
            // checking to see if query worked fine
            echo gettype($row);
            //it returns NULL
             }
am i doing it the right way ?
what should i do ?
 
     
     
    