php4 - MS SQL7 connection problem
| From: | Martin Tiscornia | Date: | Thu, 01 Feb 2001 17:27:02 +0000 |
| Subject: | php4 - MS SQL7 connection problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-37666@lists.php.net to get a copy of this message | ||
Hello!
I'm running: WinNT4, IIS4, php 4.03pl1, and I'm trying to connect to MS SQL
7.
Well, I configured the php.ini (extension=php_mssql70.dll), and I copy that
.dll to the windows folder. Now I want to connect to the SQL and it doesn't
work, it makes a time out. If I do the same things with php 3.0.17 it works
fine.
The code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head><title>Untitled</title></head>
<body>
<?php
$HOST = "the host";
$USER = "the username";
$PSW = "the password";
$DB = "Database name";
if (mssql_connect($HOST, $USER, $PSW))
{
mssql_select_db($DB);
echo mssql_result( mssql_query("SELECT @@VERSION"), 0, 0);
}
if (!mssql_close())
echo "No lo pudo cerrar";?> </body> </html> Any solution? Thank you in advance . . . - @n Angel - _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.