Hi i need to use the below query in PHP to generate PDF but its not displaying what are all the supporting files i need to put for running the below (XML path) query in php,Its running successful in sql but when i put in php its not working can any one help in this its very urgent
select a.projecttype as Projecttype,a.projecttitle,a.applicationtype,a.projectvalue,
CONVERT(VARCHAR(11),a.startdate,106) as startdate,
CONVERT(VARCHAR(11),a.closuredate,106) as closuredate,
STUFF((select ';' + b.coinvestigatorname
from iitmicsr..projectdetails a left outer join
iitmicsr..coinvestigatordetails b on a.projectnumber = b.projectnumber
where a.EmployeeId = '008074'and a.projecttype in( 'C','S')
FOR XML PATH('')), 1, 1, '') as coinvestigatorname
group by a.projecttype,a.startdate