Welcome Guest, Not a member yet? Register   Sign In
get list of databases
#1

[eluser]rochellecanale[/eluser]
hello guys how can i display all the databases in mysql using active record or tradational query?
something like:

Code:
<?php
            $showdatabase = "SHOW DATABASES";
            $resultshow = $this->db->query($showdatabase);
            foreach($resultshow->result_array() as $row){
                
        ?>        
                <tr>
                    <td>
                        &lt;?php
                            echo "<label>".$row['']."</label>";   //dont know how can i get the list of databases
                        ?&gt;
                    </td>
                </tr>    
        &lt;?php        
            }
        ?&gt;
#2

[eluser]rochellecanale[/eluser]
ok i found the answer it is in the database utility class




Theme © iAndrew 2016 - Forum software by © MyBB