MSSQL DB Connect
[email protected] ("Jerry") Fri, 21 Dec 2001 16:46:27 -0000
| Newsgroups | php.general,php.lang |
|---|---|
| Message-ID | <[email protected]> |
Hi
I have PHP on windows 2000 web server
I would like to remote to a MS SQL database on another web server.
I tried something like:
<?php
$h = "server adr";
$u = "user";
$p = "passw";
$b = "db";
$connexion = mssql_connect("$h", "$u", "$p");
mssql_select_db($b);
$sql = "select * from test";
$result = mssql_query($sql_temp);
mssql_close($connexion);
?>
But it didn't work. Please help me.
Jerry