Forum Moderators: coopster
I can write the code to do the SQL stuff and maipulate the data, but i'm confused as hell as how to connect to a MS-SQL server using either windows or linux (preferably linux) in order to GET the data!
Any help would be appreciated... php's documentation of MS-SQL functions is very "lacking".
thanks,
mjar81
$db_conn = mssql_connect("sqlserver" , "sqluser" , "sqlpassword" );
mssql_select_db("sqldb", $db_conn);
$result = mssql_query('SELECT * FROM table', $db_conn );
while ($row = mssql_fetch_array($result)) {
//continue as usual
}
[edited by: jatar_k at 8:17 pm (utc) on Feb. 1, 2005]
[edit reason] removed url [/edit]
seems like i don't have the dll extensions enabled on my windows testing box...
and i get the error:
"Warning: PHP Startup: Unable to load dynamic library 'c:\php\php_mssql.dll' - the specified module could not be found"
i looked in the c:\php directory and the file is there!
thanks for your help,
mjar81
The extension requires the MS SQL Client Tools to be installed on the system where PHP is installed. The Client Tools can be installed from the MS SQL Server CD or by copying ntwdblib.dll from \winnt\system32 on the server to \winnt\system32 on the PHP box. Copying ntwdblib.dll will only provide access. Configuration of the client will require installation of all the tools.
[us2.php.net...]