googlexx Posted June 4, 2009 Share Posted June 4, 2009 when i add LIMIT to my query i get this error: Fatal error: Uncaught exception 'com_exception' with message '<b>Source:</b> Microsoft OLE DB Provider for ODBC Drivers<br/><b>Description:</b> [Microsoft][ODBC Microsoft Access Driver] Syntax error in ORDER BY clause.' in C:\xampp\htdocs\top10.php:16 Stack trace: #0 C:\xampp\htdocs\top10.php(16): com->Execute('SELECT Username...') #1 {main} thrown in C:\xampp\htdocs\top10.php on line 16 This is my query $rs = $conn->Execute("SELECT Username, Experience, Wins, Losses, State, MVP FROM users ORDER BY Experience desc LIMIT 10"); Link to comment https://forums.phpfreaks.com/topic/160875-limit-messes-up-code/ Share on other sites More sharing options...
otuatail Posted June 4, 2009 Share Posted June 4, 2009 This is a microsoft Access problem. You need to get help there. I don't think you can use LIMIT. Desmond. Link to comment https://forums.phpfreaks.com/topic/160875-limit-messes-up-code/#findComment-849101 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.