January 27, 2004 at 5:57 am
Could anyone post me an examle of how to connect using mentioned technologies.
Cheers!!
January 27, 2004 at 6:03 am
Does this help?
http://www.php.net/manual/en/ref.mssql.php
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
January 27, 2004 at 6:27 am
Yes it does, thank you! But I can't figure out how to connect to the database without setting up a odbc driver first in Data Sources. I don't want to connect with the odbc driver.
January 27, 2004 at 6:36 am
To be honest, I don't know. Best bet I can give you is to look after the user contributed notes in http://www.php.net/manual/en/function.mssql-connect.php
I once tried to connect to SQL Server using php, but couldn't get it to work. I know that other members here were more successful.
I only know how to use it to connect to MySQL, but that's another case.
Not a satisfying answer, I know, but I hope it helps.
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
January 27, 2004 at 6:57 am
No worries mate, thanks anyway!
January 28, 2004 at 9:08 am
This is how i did it, hope this helps.
$myServer = "ip address of server";
$myUser= "DBUsername";
$myPass = "DBPassword";
$myDB = "DBName";
$connection = mssql_connect($myServer, $myUser, $myPass) or
die("Couldn't open a connection to the server $myServer");
$database = mssql_select_db($myDB, $connection)
or die("Couldn't open database $myDB");
January 29, 2004 at 6:42 am
Cheers mate, it did help!!!!!!!!
Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply