pokoot Posted August 17, 2011 Share Posted August 17, 2011 Hi thanks for reading. I got this error running on the script, but works perfectly on the mssql gui interface: $paging = " GO WITH ordering AS ( SELECT * , ROW_NUMBER() OVER (ORDER BY type ASC , id ASC ) AS 'row_number' FROM config ) SELECT * FROM ordering WHERE row_number BETWEEN 0 AND 20 " ; mssql_query( $paging_query ); Warning: mssql_query() [function.mssql-query]: message: Incorrect syntax near 'ordering'. (severity 15) Hope some1 can help :( Quote Link to comment https://forums.phpfreaks.com/topic/244992-need-help-on-this-syntax/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.