?PHP
$hostname = LocalServer;
^^
This should be LocalHost (unless you are trying to connect to a server
with a DNS alias of LocalServer).
Mark
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I am trying to get a script to work to retrieve data from a MS SQL database.
I also tried using a ODBC connection, but that didn't work either.
Here is the error I get;
Warning: MS SQL: Unable to connect to server: LocalServer in
C:\WEBS\CTTechCouncil\stocks\mssql.php on line 7
- Original Message -
From: Justin Felker [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: May 31 2002 08:46 AM
Subject: [PHP] MS SQL Problem
Last night, I ran into a problem when using the MS SQL support in PHP
under
Apache/PHP module/MS SQL 2000. Everything worked well enough. I
Felker [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: May 31 2002 11:21 PM
Subject: Re: [PHP] MS SQL Problem
Thanks for the reply. Actually, I am using both mssql_free_query
and mssql_close along with mssql_pconnect. It still happens
however. I can post the code if you are unsure. Does
Last night, I ran into a problem when using the MS SQL support in PHP under
Apache/PHP module/MS SQL 2000. Everything worked well enough. I was able
to connect to the server, query data, and a number of other
things. However, I found that if I ran my test page (it connects to,
queries and
PROTECTED]
Sent: May 31 2002 08:46 AM
Subject: [PHP] MS SQL Problem
Last night, I ran into a problem when using the MS SQL support in PHP
under
Apache/PHP module/MS SQL 2000. Everything worked well enough. I was able
to connect to the server, query data, and a number of other
things. However
I am relatively new to the SQL aspect of PHP. I have a small background in
SQL programming, so I can get my way around that part. The problem I am
having is that a query of mine is throwing back zero (0) rows of result. I
am using some simple SQL syntax to check for the existance of a user in
On 29 Apr 2002 at 14:14, Joshua E Minnie wrote:
if(user_exists($dbname,users,user,$user) 0) {
echo the variables to make sure they are what they should be.
function user_exists($dbname, $table, $field, $value) {
echo the variables to make sure they are what they should be.
$query =
8 matches
Mail list logo