Ver Mensaje Individual
  #5 (permalink)  
Antiguo 29/04/2010, 14:11
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: uso de SHOW TABLES

aunque podrías usar mysql_fetch_row para crear un array como el que necesitas:
Código PHP:
Ver original
  1. <?php
  2.  
  3. $link = mysql_connect("localhost", "root", "");
  4. mysql_select_db("test", $link);
  5. $result = mysql_query("SHOW TABLES", $link);
  6. $tables = array();
  7. while($row = mysql_fetch_row($result)) {
  8.     $tables[] = $row[0];
  9. }
  10.  
  11. var_dump($tables);