Reply to Re: mssql_connect() Problems

Your name:

Reply:


Posted by Sabine Dinis Blochberger on 04/24/07 09:59

spamguy21@gmail.com wrote:

> I have a server with Windows 2000, PHP 5, IIS and SQL Server 2000
> running. Individually, each works great. When trying to bring PHP and
> MSSQL together, though, I'm tearing my hair out...it just will not
> connect. Not even an error message.

Have you looked at the event viewer? If you didn't specify for PHP to
log to a file, that's where the errors go...

>
> Consider the code:
>
> <?php
> $server = "localhost"; // have also tried "[servername]", "localhost:
> 1433" and "[servername]:1433"
> $username = "administrator"; // Windows username
> $password = "[password]";
> if (!mssql_connect($server, $username, $password))
> echo "Could not connect.<p>";
> ?>
>
I don't know about MSSQL, but shouldn't you use a MSSQL user (as opposed
to a windows user)?

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация