Jump to content

Shakir

New Members
  • Posts

    1
  • Joined

  • Last visited

Shakir's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. <?php //I WANT TO DISPLAY THE TABLES NAME INSIDE THE DATABASE //How to write the query for it //============================================================================== //You have to Start Session to Use the Session Variable at that page //============================================================================== session_start(); //$Server = $_SESSION['Server']; //$User = $_SESSION['User']; //$Pass = $_SESSION['Pass']; $DB = $_SESSION['DB']; echo $DB; //============================================================================== //$query = mssql_query('USE your_database SELECT name FROM sys.tables'); $query = mssql_query('USE "$DB" SELECT name FROM sys.tables'); print_r($query);
×
×
  • 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.