Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

connecting php and mssql using ADODB

Status
Not open for further replies.

meenakshidhar

Programmer
Oct 19, 2001
77
MY
I have Freetds installed on my linux box and php 4.4.3-6
My code is given below...
<?
include('adodb/adodb.inc.php');

$db = ADONewConnection('odbc_mssql');
$dsn = &quot;Driver={SQL Server};Server=serverip;Database=dbname;&quot;;
$db->Connect($dsn,'username','password');

$rs = $db->Execute('select * from tablename');
$a = $rs->Fields(0);
echo $a;
$rs->Close();
?>

i m not getting blank page without any error....i don't know where i m wrong....plss help me out...

Regards
Meenakshi Dhar
 
i think there is some problem in installation...now i have a fresh system...plss tell me which version of linux, php-mysql,php-mssql, freetds should i installed...
the only version i found of php-mssql is php-mssql-4.3.4-4.i386.rpm & that of freetds is freetds 0.61...
and what all packages should i select during installation of linux...i am planning to insall Red Hat Linux 9.0 now...

this is very urgent...

Regards
Meenakshi Dhar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top