step by step connecting to mysql using Php PDO method code example
Example: php pdo sql server connect
$db = new PDO("sqlsrv:Server=YouAddress;Database=YourDatabase", "Username", "Password");
$db = new PDO("sqlsrv:Server=YouAddress;Database=YourDatabase", "Username", "Password");