Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-17-2011, 05:51 AM   #1
LQ Newbie
Registered: Jun 2011
Posts: 2

Rep: Reputation: Disabled
Unhappy odbc connection issues

Dear Friends,

I Have one Redhat6 pc,For running php application.I want one Information about odbc connection.Our organization have another windows server with MSSQL databases server.I try to connect that mssql database using php from redhat.But connection not getting...what is the reason,any connector issues..

I am just new one in Linux

My connection code


class DB {
function DB()
$this->server = "server name";
$this->db = "db name";
$this->user = "user";
$this->pass = "user123";
$this->link = odbc_connect($this->server, $this->user, $this->pass) or die("Error Connecting DB");

Old 06-20-2011, 11:27 AM   #2
LQ Newbie
Registered: Jun 2011
Posts: 8

Rep: Reputation: Disabled
Basic question: What happens if you ping "server name" from the host you are running the script from?

And second question: Don't you have to call the function in order to establish the connection? What output is there when you try to run the script?
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Permit an ODBC connection to my MYSQL database Squidek Ubuntu 2 08-27-2009 09:26 AM
Installing javaSDK, how to establish ODBC connection? pavanesh_soni Linux - Newbie 1 03-18-2009 01:39 PM
odbc connection on Debian Woody Skaan Linux - Newbie 2 05-31-2005 08:10 AM
ODBC connection to MySQL darius Linux - Software 2 09-29-2003 07:40 PM
odbc connection jstu Linux - General 1 11-12-2002 11:01 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:53 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration