I can get the ID of last inserted records using sql server:
  INSERT INTO CustomerFeedback(CustomerName, Dept, Location, surveydate, workOrderID,yourIPAddress)
  VALUES('Sam Jones','IT','PMO','07/29/2015','10:00:11:0')
  SELECT SCOPE_IDENTITY()
But how do I get the ID of last inserted record using php and sql server?
Every example I have seen so far is for php and MySQL.
Below is the code I am using.
     $strSQL = "INSERT INTO CustomerFeedback(CustomerName, Dept, Location, surveydate, workOrderID,yourIPAddress)
     VALUES ('". ms_escape_string($customername)."','". ms_escape_string($dept)."','". ms_escape_string($location)."','". ms_escape_string($surveydate)."','". ms_escape_string($idworkorder)."','". ms_escape_string($ipaddress)."')";
  $results = sqlsrv_query($con, $strSQL);
Thanks in advance.