php code to connect to MS-SQL SERVER
| From: | Rafi Sheikh | Date: | Thu, 18 Mar 2004 07:31:56 +0000 |
| Subject: | php code to connect to MS-SQL SERVER | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-180840@lists.php.net to get a copy of this message | ||
Hello folks.
Basics: Apache 1.3.29, PHP 4.3.4, on WIN 2K-Pro
SYS DSN=using SQL Server driver a connection exists (tested via Ms-Access)
against a SQL Server
PROBLEM: I am very new in php, therefore requesting if a simple snippet of
code can be listed showing the proper way of making a connection to a SQL
server in a PHP script.
Names to Use:
System DNS=repo
SQL Server Database name=test
User=rookie
I tried
he manual on PHP site, and read about ODBC_connect and odbc_fetch_array but
I admit that at 1.30 in the morning I am way over my head on this. Any
pointer to a source (beg level) or help with a code snippet is deeply
appreciated.
Regards,
RS
This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified that
any dissemination, distribution or copying of this e-mail is prohibited. If
you have received this e-mail in error, please notify the sender by replying
to this message and delete this e-mail immediately.