I'm trying to connect from php to Azure DB by
$connectionInfo = array("UID" => "xxx@xxx", "pwd" => "xxx", "Database" => "xxx");
$serverName = "tcp:xxx.database.windows.net,1433";
$conn = sqlsrv_connect($serverName, $connectionInfo);
But it gives me
Fatal error: Call to undefined function sqlsrv_connect() in C:wampwww...index.php on line 19
you have to use the SQL Server native driver for php at first place, then you can do something like:
You can read more on PHP and SQL Azure at following blog post:
http://blogs.msdn.com/b/brian_swan/archive/2010/02/12/getting-started-with-php-and-sql-azure.aspx