Ver Mensaje Individual
  #7 (permalink)  
Antiguo 27/01/2009, 14:20
Avatar de Wilfred
Wilfred
 
Fecha de Ingreso: octubre-2008
Mensajes: 110
Antigüedad: 15 años, 6 meses
Puntos: 1
Respuesta: Usar punteros de funciones mysql

Muximas gracias korg1988,ya conseguí lo que quería.(L)
dejo aquí el code por si a alguien le interesa:
Código:
 <?php
  //recoger variables
    $dbname= $_GET['dbname'];
    $server= $_POST['server'];
    $user= $_POST['user'];
    $pass= $_POST['pass'];
    
 //conectar con MySQL
	$link = mysql_connect('localhost', 'root', 'root');
if (!$link) {
    die('Could not connect: ' . mysql_error());
    }
   
    
    //consultas
   
    $db_list = mysql_list_dbs($link);
    $table_list = mysql_list_tables($dbname);

    

    
   //mostrar las bases de datos creadas
while ($row = mysql_fetch_array($db_list)) {
    
    echo '<br><a rel="nofollow" href="?dbname='.$row[Database].'">'.$row[Database].'</a>';
}

//mostrar las tablas

if(isset($_GET["dbname"])) {
  
  while ($row = mysql_fetch_row($table_list)) {
    echo "Table: $row[0]\n";
}

mysql_free_result($table_list);
}



   
    ?>