connect Microsoft SQL Server Management Studio with Dreamweaver

Asked

Viewed 72 times

0

I have a server on my computer, Xampp and it’s working OK. My question is: how do I link SQL Server to my html or PHP document? I use Dreamweaver, it’s the same process to connect the test server or just link?

Is this code what I put in the correct PHP? That’s all?

sqlsrv_connect('DANIEL-PC\SQLEXPRESS', array(
    'UID' => 'sa',
    'PWD' => '123456',
    'Database' => 'CTe'
));
var_dump(sqlsrv_errors());
  • Dreamweaver is just the tool for you to develop, it will not connect to SQL Server. You will have to connect to the database by php. See: https://answall.com/a/26374/69359

  • Check the documentation for functional examples: http://php.net/manual/en/function.sqlsrv-connect.php

  • our doubts are in the same context, however distinct, they are seeking an error in the connection of it, I do not know how to connect, this is my doubt, as I connect, with a simple script or as, I do not know how to start this connection...

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.