mssql_connect('repo',$User,$Pass);
mssql_select_db('test');
On Thu, 2004-03-18 at 02:31, Rafi Sheikh wrote:
> 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.
--
Adam Voigt
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php