public function checkTableExist($table, $con=NULL)
    {
        $connection = $this->checkConnection($con);
        $query = $connection->query("SELECT 1 FROM {$table} LIMIT 1");
        if($query !== false)
        {
            return true;
        }
    }
public function checkTableExist($table, $con=NULL)
    {
        $connection = $this->checkConnection($con);
        $query = $connection->query("SELECT 1 FROM {$table} LIMIT 1");
        if($query !== false)
        {
            return true;
        }
    }
public function checkTableExist ( $ table , $ con = NULL ) { $ connection = $ this -> checkConnection ( $ con ) ; $ query = $ connection -> query ( "SELECT 1 FROM {$table} LIMIT 1" ) ; if ( $ query !== false ) { return true ; } }
checkTableExist Check if table already in the database

@param  $tablename
@param  $con

@return bool
checkTableExist Check if table already in the database