<?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);