[PHP-DEV] Re: [PHP-WIN] MSSQL connect

2001-12-26 Thread Thomas \omega\ Henning

?php
$h = server adr; //don't forget 2 change this
$u = user; //don't forget 2 chage this
$p = passw; //don't forget 2 change this
$b = db; //don't forget 2 change this
$connexion = mssql_connect($h, $u, $p);

 Why do you uses quotes here?

mssql_select_db($b);

$sql_temp = select * from test;
//.
$result = mssql_query($sql_temp);
//  ^^

//??

mssql_close($connexion);
?

Here is the problem $sql != $sql_temp
so the $result = NULL; because mssql_query( ) has no query to send to the
MsSQL server.
This should work try it out!!!

Thomas omega Henning




-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] RE: [PHP-WIN] MSSQL connect

2001-12-26 Thread Svensson, B.A.T. (HKG)

You must be an extremely intelligent person, almost literary quoting my
answer, and then pinpointing down things I already pointed out! Moron...

From: Thomas omega Henning
Sent: Wednesday, December 26, 2001 8:50 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: Re: [PHP-WIN] MSSQL connect


?php
$h = server adr; //don't forget 2 change this
$u = user; //don't forget 2 chage this
$p = passw; //don't forget 2 change this
$b = db; //don't forget 2 change this
$connexion = mssql_connect($h, $u, $p);

 Why do you uses quotes here?

mssql_select_db($b);

$sql_temp = select * from test;
//.
$result = mssql_query($sql_temp);
//  ^^

//??

mssql_close($connexion);
?

Here is the problem $sql != $sql_temp
so the $result = NULL; because mssql_query( ) has no query 
to send to the MsSQL server.
This should work try it out!!!

Thomas omega Henning

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Re: [PHP-WIN] MSSQL connect

2001-12-26 Thread Thomas \omega\ Henning

I don't know who's a moron that can;t even see straight
B.A.T. Svensson [EMAIL PROTECTED] wrote in message
27E647E5629ED211BF78009027289C6302157DAB@mail1">news:27E647E5629ED211BF78009027289C6302157DAB@mail1...
 You must be an extremely intelligent person, almost literary quoting my
 answer, and then pinpointing down things I already pointed out! Moron...

 From: Thomas omega Henning
 Sent: Wednesday, December 26, 2001 8:50 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
 [EMAIL PROTECTED]
 Subject: Re: [PHP-WIN] MSSQL connect
 
 
 ?php
 $h = server adr; //don't forget 2 change this
 $u = user; //don't forget 2 chage this
 $p = passw; //don't forget 2 change this
 $b = db; //don't forget 2 change this
 $connexion = mssql_connect($h, $u, $p);
 
  Why do you uses quotes here?
 
 mssql_select_db($b);
 
 $sql_temp = select * from test;
 //.
 $result = mssql_query($sql_temp);
 //  ^^
 
 //??
 
 mssql_close($connexion);
 ?
 
 Here is the problem $sql != $sql_temp
 so the $result = NULL; because mssql_query( ) has no query
 to send to the MsSQL server.
 This should work try it out!!!
 
 Thomas omega Henning



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] RE: [PHP-WIN] MSSQL connect

2001-12-26 Thread Svensson, B.A.T. (HKG)

What the heck are you talking about?


-Original Message-
From: Thomas omega Henning [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 26, 2001 7:50 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: Re: [PHP-WIN] MSSQL connect


I don't know who's a moron that can;t even see straight
B.A.T. Svensson [EMAIL PROTECTED] wrote in message
27E647E5629ED211BF78009027289C6302157DAB@mail1">news:27E647E5629ED211BF78009027289C6302157DAB@mail1...
 You must be an extremely intelligent person, almost literary 
quoting my
 answer, and then pinpointing down things I already pointed 
out! Moron...

 From: Thomas omega Henning
 Sent: Wednesday, December 26, 2001 8:50 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
 [EMAIL PROTECTED]
 Subject: Re: [PHP-WIN] MSSQL connect
 
 
 ?php
 $h = server adr; //don't forget 2 change this
 $u = user; //don't forget 2 chage this
 $p = passw; //don't forget 2 change this
 $b = db; //don't forget 2 change this
 $connexion = mssql_connect($h, $u, $p);
 
  Why do you uses quotes here?
 
 mssql_select_db($b);
 
 $sql_temp = select * from test;
 //.
 $result = mssql_query($sql_temp);
 //  ^^
 
 //??
 
 mssql_close($connexion);
 ?
 
 Here is the problem $sql != $sql_temp
 so the $result = NULL; because mssql_query( ) has no query
 to send to the MsSQL server.
 This should work try it out!!!
 
 Thomas omega Henning



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: 
[EMAIL PROTECTED]


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] RE: [PHP-WIN] MSSQL connect

2001-12-24 Thread Svensson, B.A.T. (HKG)

From: Jerry [mailto:[EMAIL PROTECTED]]

I tried something like:

?pup
$h = server adr;
$u = user;
$p = passw;
$b = db;
$connexion = mssql_connect($h, $u, $p);

Why do you uses quotes here?

mssql_select_db($b);

$sql = select * from test;
.
$result = mssql_query($sql_temp);
.  ^^

??

mssql_close($connexion);
?



But it didn't work. Please help me.

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]