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
– Rovann Linhalis
Check the documentation for functional examples: http://php.net/manual/en/function.sqlsrv-connect.php
– Don't Panic
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...
– Mikaela Kleinkauf