Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

RES: RES: [PHP-INSTALL] PHP on WIndows 2003 Web Edition
Hello!

i tried that and did not work!
thanks anyway.

-----Mensagem original-----
De: mewsite@box6.illusionfxnet.com
[mailto:mewsite@box6.illusionfxnet.com]Em nome de Michael W.
Enviada em: ter=E7a-feira, 10 de maio de 2005 17:25
Para: Maurit Pereira Fagundes
Cc: disguised.jedi@gmail.com; php-install@lists.php.net
Assunto: Re: RES: [PHP-INSTALL] PHP on WIndows 2003 Web Edition
Prioridade: Alta


Try using $db =3D mssql_connect("server ip", "user", "password"). I =
think
that it's the correct syntax.

On Tue, May 10, 2005 2:07 pm, Maurit Pereira Fagundes said:
> Hi.
>
> I receive the following message --> Warning: mssql_connect(): Unable =
to
> connect to server: servername
>
> the php code to connect to the sql server is:
> (!$db=3Dmssql_connect("servername","user","password")
>
> ---------------------------------------------------------------
> i already tried the following sintax, but did not work:
>
> mssql_connect("SERVER\INSTANCE","UID","PWD");
> ou
> mssql_connect("SERVER\\INSTANCE","UID","PWD");
> ou
> mssql_connect("SERVER:PORT","UID","PWD");
> ou
> mssql_connect("SERVER,PORT","UID","PWD");
> ou
> mssql_connect("SERVER","UID","PWD");
> ---------------------------------------------------------------
>
> so i tried the following sintax: i created an OBDC before and the
> connection with sql server worked.
> <?
> $dsn=3D"odbc name";
> $username=3D"username";
> $password=3D"password";
>  $sqlconnect=3Dodbc_connect($dsn,$usernam
e,$password) or die ( 'Can not
> connect to server' )
> ?>
>
> i want to understand why the first method did not work, please some =
help!
>
> Thanks in advance!
>
>
>
>
>
> -----Mensagem original-----
> De: disguised.jedi@gmail.com [mailto:disguised.jedi@gmail.com]
> Enviada em: ter=E7a-feira, 10 de maio de 2005 14:21
> Para: Maurit Pereira Fagundes
> Cc: php-install@lists.php.net
> Assunto: Re: [PHP-INSTALL] PHP on WIndows 2003 Web Edition
>
>
> On 5/9/05, Maurit Pereira Fagundes <MAURIT@fgv.br> wrote: 
worked. 
had 
> /*
> I could help, except that I have no idea what is wrong!  I need error
> messages, code, configuration files and the like if they are relavent
> in order to help you out!  Post this and we can troubleshoot these
> things a lot better!
> */
>
> --
> disguised.jedi@gmail.com
>
> PHP rocks!
> "Knowledge is Power.  Power Corrupts.  Go to school, become evil"
>
> Disclaimer: Any disclaimer attached to this message may be ignored.
> However, I must say that the ENTIRE contents of this message are
> subject to other's criticism, corrections, and speculations.
>
> This message is Certified Virus Free
>

Report this thread to moderator Post Follow-up to this message
Old Post
Maurit Pereira Fagundes
05-11-05 01:57 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Installation archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 09:45 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.