Jump to content

limit messes up code


googlexx

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.