Jump to content

perrin21

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

perrin21's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. thanks for the help tdw... but I eventually solved the problem using: <?php ... $dbc = mysql_connect($ip,$user,$pass) or die(mysql_error()); mysql_select_db($db,$dbc) or die(mysql_error()); $sql = "SHOW TABLES FROM $db"; $result = mysql_query($sql, $dbc) or die(mysql_error()); // displaying tables if ($myrow = mysql_fetch_array($result)) { do{ echo " Table {$myrow[0]}\n"; } while($myrow = mysql_fetch_array($result)); }// end if ... ?> Once again thanks!!!! Regards DeeJay
  2. Hey all! 'k, so I'm trying CLI PHP for the first time..., The project I've been handed requires a display of all tables in said database. How do I proceed??? thanks for any help, in this regard!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.