PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I am converting the mssql functions in my application to sqlsrv functions as part of a migration activity from SQL Server 2003 to SQL Server 2008. I am not getting the expected results when I just replace mssql_field_name with its equivalent in sqlsrv i.e sqlsrv_field_metadata. I am not sure if I am using the right sqlsrv function for this. Could anyone help me here. The code which I am trying to convert looks something like this:
sqlsrv_field_metadata($stmt) returns an array of arrays. There is an array of information for each field. I think you can do something similar to what you are doing like this:
Thanks for providing the syntax of equivalent sqlsrv function for mssql_field_name. I am now able to get the expected results after changing the code snippet.