LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 06-17-2011, 05:51 AM   #1
manu@vssc
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

<?php

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
Valentin
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.
  


Reply


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


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

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