Mcrosoft SQL Server and "for xml auto" queries

From: Date: Tue, 19 Aug 2003 04:00:13 +0000
Subject: Mcrosoft SQL Server and "for xml auto" queries
Groups: php.db 
Request: Send a blank email to php-db+get-29951@lists.php.net to get a copy of this message
I've been trying for months to figure out how to get "for xml auto" queries to work from PHP. I've got it working from ASP, which I strongly disprefer (hate!). I'd simply like to do: $sql = "select * from customers for xml auto"; $xml = $mssql->execute($sql); echo $xml This should return: <root> <customer id="1" name="Alfred Futt"/> <customer id="2" etc./> </root> Any help appreciated. Daniel

« previous php.db (#29951) next »